mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
Merge pull request #5214 from owncloud/no_extra_slashes
Don't double-slash filenames at the root.
This commit is contained in:
commit
29e9f2833d
1 changed files with 1 additions and 1 deletions
|
|
@ -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) ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue