small fix

This commit is contained in:
Ralf Becker 2004-08-22 18:32:20 +00:00
parent 2c20ef30e6
commit aa86cc11eb

View File

@ -1209,11 +1209,11 @@
{ {
if (is_array($val)) if (is_array($val))
{ {
_check_script($var[$key]); _check_script_tag($var[$key]);
} }
else else
{ {
if (preg_match('/(<|&lt;)+\/?script(>|&gt;)+/i',$val)) if (preg_match('/<\/?script>/i',$val))
{ {
unset($var[$key]); unset($var[$key]);
} }