mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-18 21:39:52 +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:
parent
2404f6daf5
commit
ad2b76ea29
@ -30,6 +30,8 @@ include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
|
|||||||
// Do some initial checks, set basic variables,
|
// Do some initial checks, set basic variables,
|
||||||
// etc.
|
// etc.
|
||||||
//
|
//
|
||||||
|
$html_entities_match = array("#<#", "#>#", "#& #");
|
||||||
|
$html_entities_replace = array("<", ">", "& ");
|
||||||
|
|
||||||
$submit = ( isset($HTTP_POST_VARS['submit']) ) ? TRUE : 0;
|
$submit = ( isset($HTTP_POST_VARS['submit']) ) ? TRUE : 0;
|
||||||
$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? 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 = preg_replace("/\:[0-9a-z\:]*?\]/si", "]", $post_message);
|
||||||
$post_message = str_replace("<br />", "\n", $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', '</textarea>', $post_message);
|
$post_message = preg_replace('#</textarea>#si', '</textarea>', $post_message);
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -1853,6 +1855,11 @@ if( $preview && !$error )
|
|||||||
);
|
);
|
||||||
$template->pparse("preview");
|
$template->pparse("preview");
|
||||||
|
|
||||||
|
//
|
||||||
|
// Post preview output conversion
|
||||||
|
//
|
||||||
|
$post_message = preg_replace($html_entities_match, $html_entities_replace, $post_message);
|
||||||
|
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// End preview output
|
// End preview output
|
||||||
|
Loading…
x
Reference in New Issue
Block a user