issue 2516, fixed a bug that does not modify some layout html

git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11459 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-09-24 05:38:08 +00:00
parent a41334388a
commit 57c915eae9

View file

@ -847,9 +847,9 @@ class Context {
if($set_to_vars)
{
$val = preg_replace('/<\?.*(\?>)?/iUsm', '', $val);
$val = preg_replace('/<\%.*(\%>)?/iUsm', '', $val);
$val = preg_replace('/<script(\s|\S)*language[\s]*=("|\')php("|\')(\s|\S)*>.*<[\s]*\/[\s]*script[\s]*>/iUsm', '', $val);
$val = preg_replace('/<\?/i', '', $val);
$val = preg_replace('/<\%/i', '', $val);
$val = preg_replace('/<script\s+language\s*=\s*("|\')php("|\')\s*>/ism', '', $val);
}
$this->set($key, $val, $set_to_vars);