1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 16:46:50 +02:00

Additional [php] protection

This commit is contained in:
mcfly
2007-11-10 19:24:42 +00:00
parent 8815507e0b
commit 74ffda4223
2 changed files with 13 additions and 8 deletions

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.20 $
| $Date: 2007-11-08 22:46:49 $
| $Author: e107steved $
| $Revision: 1.21 $
| $Date: 2007-11-10 19:24:42 $
| $Author: mcfly_e107 $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@@ -161,7 +161,7 @@ class e_parse
$data = str_replace('\\', '\', $data);
$ret = preg_replace("/&#(\d*?);/", "&#\\1;", $data);
}
if (!check_class($pref['php_bbcode']) || (is_numeric($original_author) && !check_class($pref['php_bbcode'], '', $original_author)) || strpos($mod, 'no_php') !== false)
if (strpos($mod, 'no_php') !== false)
{
$ret = str_replace(array("[php]", "[/php]"), array("[php]", "[/php]"), $ret);
}