Files
provision_sccp/lib/utils.php
Diederik de Groot d039261022 Add lib/utils.php file
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>
2020-02-16 08:57:02 +01:00

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');;
}
?>