diff --git a/files/ajax/autocomplete.php b/files/ajax/autocomplete.php index 4276bb9e1d0..d22f88474ce 100644 --- a/files/ajax/autocomplete.php +++ b/files/ajax/autocomplete.php @@ -29,6 +29,10 @@ if(substr($query,-1,1)=='/'){ } $query=substr($query,strlen($base)); + +if($base!='/'){ + $query=substr($query,1); +} $queryLen=strlen($query); // echo "$base - $query";