Update functions.php

pull/13/head
qkqpttgf 2020-01-06 13:22:12 +08:00 committed by GitHub
parent fe2b2ed621
commit 36cdc1ef91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ function getpath()
$p = strpos($_SERVER['REQUEST_URI'],'?'); $p = strpos($_SERVER['REQUEST_URI'],'?');
if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p); if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p);
else $path = $_SERVER['REQUEST_URI']; else $path = $_SERVER['REQUEST_URI'];
$path = path_format(substr($path, strlen($_SERVER['base_path']))); $path = path_format(substr($path, strlen($_SERVER['base_path'])).'/');
return $path; return $path;
//return spurlencode($path, '/'); //return spurlencode($path, '/');
} }