Update functions.php
This commit is contained in:
+1
-1
@@ -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, '/');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user