mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Fix stripslashing on errors, preview, poll option addition ... okay I lied, but this one does work, honest guv ... wanna buy a bridge?
git-svn-id: file:///svn/phpbb/trunk@1510 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
8c8362d7bf
commit
4d495f9a59
1 changed files with 1 additions and 1 deletions
|
@ -2716,7 +2716,7 @@ switch($mode)
|
||||||
// If post_message is not empty (as per a preview or error )
|
// If post_message is not empty (as per a preview or error )
|
||||||
// then stripslashes
|
// then stripslashes
|
||||||
//
|
//
|
||||||
if( !empty($post_message) && $mode != "editpost" && $mode != "reply" )
|
if( !empty($post_message) && ( $preview || $error || $refresh ) )
|
||||||
{
|
{
|
||||||
$post_message = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $post_message));
|
$post_message = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $post_message));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue