From 0ca43b99f070227ec864a91bedb4a5c36f05300b Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 5 Jan 2020 15:45:36 +0800 Subject: [PATCH] Update functions.php --- functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 2016b12..8282cd0 100644 --- a/functions.php +++ b/functions.php @@ -5,12 +5,13 @@ function getpath() $p = strpos($_SERVER['REQUEST_URI'],'?'); if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p); else $path = $_SERVER['REQUEST_URI']; - return spurlencode($path, '/'); + return $path; + //return spurlencode($path, '/'); } function getGET() { - $getstr = substr(urldecode($_SERVER['REQUEST_URI']), strpos($_SERVER['REQUEST_URI'],'?')); + $getstr = urldecode(substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'],'?'))); while (substr($getstr, 0, 1) == '/' || substr($getstr, 0, 1) == '?') $getstr = substr($getstr, 1); $getstrarr = explode("&",$getstr); foreach ($getstrarr as $getvalues) {