mirror of
https://repo.palemoon.org/Moonchild/FSyncMS.git
synced 2024-11-15 06:12:54 +00:00
little correction to the experimental URI grep
cut out php params added to uri by ?...
This commit is contained in:
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…
Reference in New Issue
Block a user