]> source.dussan.org Git - nextcloud-server.git/commit
Don't double-slash filenames at the root.
authorringmaster <epithet@gmail.com>
Tue, 8 Oct 2013 16:48:59 +0000 (12:48 -0400)
committerringmaster <epithet@gmail.com>
Tue, 8 Oct 2013 16:48:59 +0000 (12:48 -0400)
commitc737b521abc782ffca73cf27b3382d6fc4c68946
tree67bece3ac32848db019db0c857a1b6c155edd1a3
parent76bdd6bc81bea48ba07d0cdd2a2496a911b914c7
Don't double-slash filenames at the root.
Replace either the end of the dir string that isn't preceded by a slash or the slash at the end of the dir string with a slash and the filename.
This prevents the root directory from ending up as two slashes, which breaks files_versions on Windows servers. See #4079 for an explanation.
apps/files_versions/js/versions.js