mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Issue #3307 '+' sign encoding issue in form.
This commit is contained in:
@@ -814,8 +814,8 @@ class e_parse extends e_parser
|
|||||||
}
|
}
|
||||||
// return htmlentities($text);
|
// return htmlentities($text);
|
||||||
|
|
||||||
$search = array('$', '"', '<', '>');
|
$search = array('$', '"', '<', '>', '+');
|
||||||
$replace = array('$', '"', '<', '>');
|
$replace = array('$', '"', '<', '>', '%2B');
|
||||||
$text = str_replace($search, $replace, $text);
|
$text = str_replace($search, $replace, $text);
|
||||||
if (e107::wysiwyg() !== true && is_string($text))
|
if (e107::wysiwyg() !== true && is_string($text))
|
||||||
{
|
{
|
||||||
@@ -841,7 +841,7 @@ class e_parse extends e_parser
|
|||||||
{
|
{
|
||||||
$text = stripslashes($text);
|
$text = stripslashes($text);
|
||||||
}
|
}
|
||||||
return str_replace(array("'", '"', "<", ">"), array("'", """, "<", ">"), $text);
|
return str_replace(array("'", '"', "<", ">", '+'), array("'", """, "<", ">", '%2B'), $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user