Explorar o código

! need to sensor the preview message, even when there is no subject

Spuds %!s(int64=12) %!d(string=hai) anos
pai
achega
247715872b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Sources/Post.php

+ 2 - 2
Sources/Post.php

@@ -545,13 +545,13 @@ function Post()
 
 			// Do all bulletin board code tags, with or without smileys.
 			$context['preview_message'] = parse_bbc($context['preview_message'], isset($_REQUEST['ns']) ? 0 : 1);
-
+			censorText($context['preview_message']);
+			
 			if ($form_subject != '')
 			{
 				$context['preview_subject'] = $form_subject;
 
 				censorText($context['preview_subject']);
-				censorText($context['preview_message']);
 			}
 			else
 				$context['preview_subject'] = '<em>' . $txt['no_subject'] . '</em>';