Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
little correction to the experimental URI grep
Browse files Browse the repository at this point in the history
cut out php params added to uri by ?...
  • Loading branch information
balu committed Jul 25, 2012
1 parent 5f3f679 commit 97ec4ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.php
Expand Up @@ -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
Expand Down

0 comments on commit 97ec4ca

Please sign in to comment.