From 5deedc0f9c41cb29d2b780f92ecfa12b3ead50dd Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 21 Feb 2018 13:46:50 +0900 Subject: [PATCH] Update uri.php --- system/uri.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system/uri.php b/system/uri.php index 22d6664..07c4040 100644 --- a/system/uri.php +++ b/system/uri.php @@ -34,6 +34,15 @@ if(!function_exists("get_requests")) { "_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; } }