Merge pull request #13978 from nextcloud/backport/13972/stable15

[stable15] trim filename in webfrontend for windows compatibility
This commit is contained in:
Morris Jobke 2019-02-07 16:47:02 +01:00 committed by GitHub
commit 30171e7941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2471,7 +2471,7 @@
}
try {
var newName = input.val();
var newName = input.val().trim();
input.tooltip('hide');
form.remove();

View File

@ -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` */