1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-16 12:29:43 +02:00

Possible fix for bug #459075, please report any strange behaviour with this update

git-svn-id: file:///svn/phpbb/trunk@994 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-09-06 16:48:15 +00:00
parent 2404f6daf5
commit ad2b76ea29

View File

@ -30,6 +30,8 @@ include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
// Do some initial checks, set basic variables,
// etc.
//
$html_entities_match = array("#<#", "#>#", "#& #");
$html_entities_replace = array("&lt;", "&gt;", "&amp; ");
$submit = ( isset($HTTP_POST_VARS['submit']) ) ? TRUE : 0;
$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : 0;
@ -1667,7 +1669,7 @@ else
$post_message = preg_replace("/\:[0-9a-z\:]*?\]/si", "]", $post_message);
$post_message = str_replace("<br />", "\n", $post_message);
$post_message = undo_htmlspecialchars($post_message);
$post_message = preg_replace($html_entities_match, $html_entities_replace, $post_message);
$post_message = preg_replace('#</textarea>#si', '&lt;/textarea&gt;', $post_message);
//
@ -1853,6 +1855,11 @@ if( $preview && !$error )
);
$template->pparse("preview");
//
// Post preview output conversion
//
$post_message = preg_replace($html_entities_match, $html_entities_replace, $post_message);
}
//
// End preview output