little correction to the experimental URI grep

cut out php params added to uri by ?...
balu-master
balu 12 years ago
parent 5f3f679132
commit 97ec4caa0e

@ -76,6 +76,8 @@
$path = $_SERVER["REQUEST_URI"];
$lastfolder = substr(FSYNCMS_ROOT,strrpos(FSYNCMS_ROOT, "/",-2));
$path = substr($path, (strpos($path,$lastfolder) + strlen($lastfolder)-1)); #chop the lead slash
if(strpos($path,'?') != false)
$path = substr($path, 0, strpos($path,'?')); //remove php arguments
log_error("path_exp:".$path);
}
else

Loading…
Cancel
Save