summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorChristian Aigner <christian.aigner@huemer-it.com>2019-01-31 15:30:20 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2019-02-01 11:13:10 +0000
commite4c20ae67dfef70653d5ab53459cab2f9c1b831c (patch)
tree598bf58a7bc37dd352421f49ae88a0504355417b /apps
parent52f0633e9c5b961d22e91d48b9d7b60629a9b9aa (diff)
downloadnextcloud-server-e4c20ae67dfef70653d5ab53459cab2f9c1b831c.tar.gz
nextcloud-server-e4c20ae67dfef70653d5ab53459cab2f9c1b831c.zip
HBOX-297 trim in webfrontend for new files to stay compatible with windows
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js2
-rw-r--r--apps/files/js/newfilemenu.js2
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` */