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