mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Try to fix build errors on some platforms.
Thanks to xet7 ! Related #4842
This commit is contained in:
parent
f1092c6f40
commit
fd9478dc57
5 changed files with 12 additions and 468 deletions
|
|
@ -228,7 +228,9 @@ BlazeComponent.extendComponent({
|
|||
const name = this.$('.js-edit-attachment-name')[0]
|
||||
.value
|
||||
.trim() + this.data().extensionWithDot;
|
||||
Meteor.call('renameAttachment', this.data()._id, name);
|
||||
if (name === DOMPurify.sanitize(name)) {
|
||||
Meteor.call('renameAttachment', this.data()._id, name);
|
||||
}
|
||||
Popup.back(2);
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue