From ff1150bb4db3772895be8e4c7291ebb2ff3314f9 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 18 Apr 2016 17:38:14 +0200 Subject: Properly escape URL Fixes https://github.com/owncloud/core/issues/23499 --- settings/js/users/deleteHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'settings/js') diff --git a/settings/js/users/deleteHandler.js b/settings/js/users/deleteHandler.js index b684aff1889..a66e8b07a72 100644 --- a/settings/js/users/deleteHandler.js +++ b/settings/js/users/deleteHandler.js @@ -191,7 +191,7 @@ DeleteHandler.prototype.deleteEntry = function(keepNotification) { payload[dh.ajaxParamID] = dh.oidToDelete; return $.ajax({ type: 'DELETE', - url: OC.generateUrl(dh.ajaxEndpoint+'/'+this.oidToDelete), + url: OC.generateUrl(dh.ajaxEndpoint+'/{oid}',{oid: this.oidToDelete}), // FIXME: do not use synchronous ajax calls as they block the browser ! async: false, success: function (result) { -- cgit v1.2.3