summaryrefslogtreecommitdiffstats
path: root/files/ajax
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-01 14:05:30 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-06-01 14:06:12 +0200
commit72815bc5538c4736577a21e722bc46303ee11e16 (patch)
tree4cfc6a3417b619484e4fb4e33119199da44f1b33 /files/ajax
parent469cbb7c75c1b21bdfeeab7e44ead8202c5c1593 (diff)
downloadnextcloud-server-72815bc5538c4736577a21e722bc46303ee11e16.tar.gz
nextcloud-server-72815bc5538c4736577a21e722bc46303ee11e16.zip
fix autocompletion
Diffstat (limited to 'files/ajax')
-rw-r--r--files/ajax/autocomplete.php4
1 files changed, 4 insertions, 0 deletions
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";