small fix

This commit is contained in:
Ralf Becker 2004-08-22 18:34:53 +00:00
parent febb03c9f1
commit 19e5c50947

View File

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