diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-10 22:02:21 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-10 22:04:05 -0400 |
commit | 20d9a8b6a114b4cdc0f7dc524135e8e0c676a00f (patch) | |
tree | 838780ecab669379af939246082bcdab32a99eb5 /apps/files_texteditor | |
parent | a3f250bfe6f5a9fa71073ca353f504176a342213 (diff) | |
download | nextcloud-server-20d9a8b6a114b4cdc0f7dc524135e8e0c676a00f.tar.gz nextcloud-server-20d9a8b6a114b4cdc0f7dc524135e8e0c676a00f.zip |
Fix accidental creation of duplicate files because of extra / in search results
Diffstat (limited to 'apps/files_texteditor')
-rw-r--r-- | apps/files_texteditor/js/editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js index 36ab196b642..2471d294a85 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -309,7 +309,7 @@ $(document).ready(function(){ a.attr('href','#'); a.click(function(){ var pos=text.lastIndexOf('/') - var file=text.substr(pos); + var file=text.substr(pos + 1); var dir=text.substr(0,pos); showFileEditor(dir,file); }); |