diff options
Diffstat (limited to 'settings/js/users/deleteHandler.js')
-rw-r--r-- | settings/js/users/deleteHandler.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/js/users/deleteHandler.js b/settings/js/users/deleteHandler.js index 894744ba3e9..56355317f8d 100644 --- a/settings/js/users/deleteHandler.js +++ b/settings/js/users/deleteHandler.js @@ -93,8 +93,8 @@ DeleteHandler.prototype.showNotification = function() { this.hideNotification(); } $('#notification').data(this.notificationDataID, true); - var msg = this.notificationMessage.replace(this.notificationPlaceholder, - this.oidToDelete); + var msg = this.notificationMessage.replace( + this.notificationPlaceholder, escapeHTML(this.oidToDelete)); this.notifier.showHtml(msg); } }; @@ -163,7 +163,7 @@ DeleteHandler.prototype.delete = function() { dh.removeCallback(dh.oidToDelete); dh.canceled = true; } else { - OC.dialogs.alert(result.data.message, t('settings', 'Unable to delete ' + escapeHTML(dh.oidToDelete))); + OC.dialogs.alert(result.data.message, t('settings', 'Unable to delete {objName}', {objName: escapeHTML(dh.oidToDelete)})); dh.undoCallback(dh.oidToDelete); } } |