Added simple shell/utf/html escape checking Added a collection of test cases (we need some more escape checking ones) Signed-off-by: Diederik de Groot <ddegroot@talon.nl>
11 lines
190 B
PHP
11 lines
190 B
PHP
<?php
|
|
//
|
|
// Helper functions
|
|
//
|
|
|
|
function utf8_urldecode($str) {
|
|
$str = preg_replace("/%u([0-9a-f]{3,4})/i","&#x\\1;",urldecode($str));
|
|
return html_entity_decode($str,null,'UTF-8');;
|
|
}
|
|
?>
|