php-src/ext/filter/tests/042.phpt
Ilia Alshanetsky 7d7248390c Filter fixes:
Fixed possible double encoding problem with sanitizing filters
	Make use of space-strict strip_tags() function
2006-12-18 04:22:05 +00:00

11 lines
280 B
PHP

--TEST--
Combination of strip & sanitize filters
--FILE--
<?php
$var = 'XYZ< script>alert(/ext/filter+bypass/);< /script>ABC';
$a = filter_var($var, FILTER_SANITIZE_STRING, array("flags" => FILTER_FLAG_STRIP_LOW));
echo $a . "\n";
?>
--EXPECT--
XYZalert(/ext/filter+bypass/);ABC