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

e_parse small corrections, header keywords updated

This commit is contained in:
secretr
2010-02-12 16:37:42 +00:00
parent bad780c356
commit 700def686f

View File

@@ -8,10 +8,8 @@
* *
* Text processing and parsing functions * Text processing and parsing functions
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $ * $URL$
* $Revision$ * $Id$
* $Date$
* $Author$
* *
*/ */
@@ -490,9 +488,9 @@ class e_parse
//Fix - sanitize keys as well //Fix - sanitize keys as well
$ret[$this->toDB($key, $nostrip, $no_encode, $mod, $original_author)] = $this->toDB($var, $nostrip, $no_encode, $mod, $original_author); $ret[$this->toDB($key, $nostrip, $no_encode, $mod, $original_author)] = $this->toDB($var, $nostrip, $no_encode, $mod, $original_author);
} }
return $ret;
} }
else
{
if (MAGIC_QUOTES_GPC == TRUE && $nostrip == FALSE) if (MAGIC_QUOTES_GPC == TRUE && $nostrip == FALSE)
{ {
$data = stripslashes($data); $data = stripslashes($data);
@@ -515,13 +513,14 @@ class e_parse
{ {
$data = htmlspecialchars($data, ENT_QUOTES, 'UTF-8'); $data = htmlspecialchars($data, ENT_QUOTES, 'UTF-8');
$data = str_replace('\\', '\', $data); $data = str_replace('\\', '\', $data);
$ret = preg_replace("/&#(\d*?);/", "&#\\1;", $data); $ret = preg_replace("/&#(\d*?);/", "&#\\1;", $data);
} }
if (strpos($mod, 'no_php') !== FALSE) if (strpos($mod, 'no_php') !== FALSE)
{ {
$ret = str_replace(array("[php]", "[/php]"), array("[php]", "[/php]"), $ret); $ret = str_replace(array("[php]", "[/php]"), array("[php]", "[/php]"), $ret);
} }
}
return $ret; return $ret;
} }