diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-02-01 12:09:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-01 12:09:54 +0100 |
commit | af62b963c79e016f1cd2667d9918d6ad2c77bf1f (patch) | |
tree | 7de71a8922be077b6d972366a50347be9fedcd3a | |
parent | 23245904d386144090b313568b09385a88291e73 (diff) | |
parent | ce379309104c36481a5f8f6d323a95e19f55c920 (diff) | |
download | nextcloud-server-af62b963c79e016f1cd2667d9918d6ad2c77bf1f.tar.gz nextcloud-server-af62b963c79e016f1cd2667d9918d6ad2c77bf1f.zip |
Merge pull request #13972 from nextcloud/backport/13947/master
[master] trim filename in webfrontend for windows compatibility
-rw-r--r-- | apps/files/js/filelist.js | 2 | ||||
-rw-r--r-- | apps/files/js/newfilemenu.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 232b47857bb..363f81a1a73 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2600,7 +2600,7 @@ } try { - var newName = input.val(); + var newName = input.val().trim(); input.tooltip('hide'); form.remove(); diff --git a/apps/files/js/newfilemenu.js b/apps/files/js/newfilemenu.js index 69450e97c2a..305af051271 100644 --- a/apps/files/js/newfilemenu.js +++ b/apps/files/js/newfilemenu.js @@ -167,7 +167,7 @@ event.preventDefault(); if (checkInput()) { - var newname = $input.val(); + var newname = $input.val().trim(); /* Find the right actionHandler that should be called. * Actions is retrieved by using `actionSpec.id` */ |