aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorChristian Aigner <christian.aigner@huemer-it.com>2019-01-31 15:30:20 +0100
committerChristian Aigner <christian.aigner@huemer-it.com>2019-01-31 15:30:20 +0100
commit6637d97376522e1d88ea5f534d8c637625d42692 (patch)
tree598bf58a7bc37dd352421f49ae88a0504355417b /apps/files
parent344c41a308c1267c9b6ebdff6a0a67654b784aad (diff)
downloadnextcloud-server-6637d97376522e1d88ea5f534d8c637625d42692.tar.gz
nextcloud-server-6637d97376522e1d88ea5f534d8c637625d42692.zip
HBOX-297 trim in webfrontend for new files to stay compatible with windows
Diffstat (limited to 'apps/files')
-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` */