1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 13:17:24 +02:00

Bug #3755 - Use of " & " wasn't validating. Added a search/replace with spaces either side to avoid problems with entities.

This commit is contained in:
CaMer0n
2007-02-18 01:17:25 +00:00
parent ba10bdc612
commit ae04b798f1

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $
| $Revision: 1.5 $
| $Date: 2007-01-20 16:12:51 $
| $Author: mrpete $
| $Revision: 1.6 $
| $Date: 2007-02-18 01:17:25 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@@ -26,8 +26,8 @@ class e_parse
var $e_pf;
var $e_emote;
var $e_hook;
var $search = array(''', ''', '"', 'onerror', '>', ''', '"');
var $replace = array("'", "'", '"', 'one<i></i>rror', '>', "'", '"');
var $search = array('&#39;', '&#039;', '&quot;', 'onerror', '&gt;', '&amp;#039;', '&amp;quot;', ' & ');
var $replace = array("'", "'", '"', 'one<i></i>rror', '>', "'", '"', ' &amp; ');
var $e_highlighting; // Set to TRUE or FALSE once it has been calculated
var $e_query; // Highlight query