From: Robin Appelman Date: Wed, 1 Jun 2011 12:05:30 +0000 (+0200) Subject: fix autocompletion X-Git-Tag: v3.0~267^2~558^2~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=72815bc5538c4736577a21e722bc46303ee11e16;p=nextcloud-server.git fix autocompletion --- 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";