Skip to content
Snippets Groups Projects
Commit 29e9f283 authored by Frank Karlitschek's avatar Frank Karlitschek
Browse files

Merge pull request #5214 from owncloud/no_extra_slashes

Don't double-slash filenames at the root.
parents 19e03ef7 c737b521
Branches
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ $(document).ready(function(){
// Action to perform when clicked
if (scanFiles.scanning){return;}//workaround to prevent additional http request block scanning feedback
var file = $('#dir').val()+'/'+filename;
var file = $('#dir').val().replace(/(?!<=\/)$|\/$/, '/' + filename);
var createDropDown = true;
// Check if drop down is already visible for a different file
if (($('#dropdown').length > 0) ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment