From f9db90f031f61cdd620ecfc3d78fe5d225a12727 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 21 May 2020 14:09:43 +0900 Subject: [PATCH] Update uri.php --- system/uri.php | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/system/uri.php b/system/uri.php index 1bed245..ca15f4b 100644 --- a/system/uri.php +++ b/system/uri.php @@ -322,17 +322,17 @@ if(!is_fn("get_requested_value")) { } } - if(is_string($value)) { - // security: set escape quotes - if($escape_quotes == true) { - $value = addslashes($value); - } + if(is_string($value)) { + // security: set escape quotes + if($escape_quotes == true) { + $value = addslashes($value); + } - // security: set escape tags - if($escape_tags == true) { - $value = htmlspecialchars($value); - } - } + // security: set escape tags + if($escape_tags == true) { + $value = htmlspecialchars($value); + } + } return $value; } @@ -414,9 +414,3 @@ if(!is_fn("set_header_content_type")) { } } } - -if(!is_fn("get_requested_jsondata")) { - function get_requested_jsondata($name, $escape_quotes=true, $escape_tags=false) { - return get_requested_jsondata($name, "_JSON", $escape_quotes, $escape_tags); - } -}