diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-02-07 16:47:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-07 16:47:02 +0100 |
commit | 30171e7941c6c2a5dd74fb9cc830113bf84dbc2f (patch) | |
tree | d809389569ae09f53c92ca27f939b563e3f3cdb1 /apps | |
parent | 386b8595b1ae8b2a271731443aed669e9b7815f8 (diff) | |
parent | e4c20ae67dfef70653d5ab53459cab2f9c1b831c (diff) | |
download | nextcloud-server-30171e7941c6c2a5dd74fb9cc830113bf84dbc2f.tar.gz nextcloud-server-30171e7941c6c2a5dd74fb9cc830113bf84dbc2f.zip |
Merge pull request #13978 from nextcloud/backport/13972/stable15
[stable15] trim filename in webfrontend for windows compatibility
Diffstat (limited to 'apps')
-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 7a8a8b80e10..37cc31ec87b 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2471,7 +2471,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` */ |