1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-22 13:41:52 +02:00

Issue '+' sign encoding issue in form.

This commit is contained in:
Cameron 2018-07-24 15:52:34 -07:00
parent e3eb8207ab
commit 91b75ea159

@ -814,8 +814,8 @@ class e_parse extends e_parser
}
// return htmlentities($text);
$search = array('&#036;', '&quot;', '<', '>');
$replace = array('$', '"', '&lt;', '&gt;');
$search = array('&#036;', '&quot;', '<', '>', '+');
$replace = array('$', '"', '&lt;', '&gt;', '%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("&#039;", "&quot;", "&lt;", "&gt;"), $text);
return str_replace(array("'", '"', "<", ">", '+'), array("&#039;", "&quot;", "&lt;", "&gt;", '%2B'), $text);
}