From af41bbc17062fd495c4251d2cc0cab6fb2f8aaf7 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 21 Feb 2018 15:28:04 +0900 Subject: [PATCH] Update security.php --- system/security.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/system/security.php b/system/security.php index 1d892ce..80dc69c 100644 --- a/system/security.php +++ b/system/security.php @@ -375,17 +375,17 @@ if(!function_exists("get_clean_xss")) { } // support curl or jsonp(callback) -if(!function_exists("get_printable_access_token")) { - function get_printable_access_token($accesstoken, $callback="", $charset="utf-8") { +if(!function_exists("get_callable_token")) { + function get_callable_token($token, $callback="", $charset="utf-8") { $callback = get_clean_xss($callback); $retdata = ""; if(empty($callback)) { - $retdata = $accesstoken; + $retdata = $token; } else { - $retdata = "function $callback { return '$accesstoken'; }"; + $retdata = "function $callback() { return '$token'; }"; } - + return $retdata; } }