From c60c160f0e3b96fdab0d0927b7b0a663cd3164b5 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 7 Mar 2019 11:10:48 +0900 Subject: [PATCH] Update uri.php --- system/uri.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/uri.php b/system/uri.php index 8fae69a..502c254 100644 --- a/system/uri.php +++ b/system/uri.php @@ -124,12 +124,15 @@ if(!check_function_exists("read_requests")) { // with security module $protect_methods = array("_ALL", "_GET", "_POST", "_JSON", "_SEAL"); - if(!check_function_exists("get_clean_xss")) { + if(check_function_exists("get_clean_xss")) { foreach($protect_methods as $method) { foreach($requests[$method] as $k=>$v) { $requests[$method][$k] = is_string($v) ? get_clean_xss($v) : $v; } } + } else { + set_error("Can not use GET/POST request without security module"); + show_errors(); } // set alias