Update uri.php

This commit is contained in:
Namhyeon Go 2018-02-21 13:46:50 +09:00 committed by GitHub
parent 284235b128
commit 5deedc0f9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,15 @@ if(!function_exists("get_requests")) {
"_URI" => !array_key_empty("REQUEST_URI", $_SERVER) ? $_SERVER["REQUEST_URI"] : '' "_URI" => !array_key_empty("REQUEST_URI", $_SERVER) ? $_SERVER["REQUEST_URI"] : ''
); );
// with security module
if(function_exists("get_clean_xss")) {
foreach($requests['_GET'] as $k=>$v) {
if(is_string($v)) {
$requests['_GET'][$k] = get_clean_xss($v);
}
}
}
return $requests; return $requests;
} }
} }