little correction to the experimental URI grep

cut out php params added to uri by ?...
This commit is contained in:
balu 2012-07-25 14:43:46 +02:00
parent 5f3f679132
commit 97ec4caa0e

View File

@ -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