From: Arthur Schiwon Date: Mon, 7 Sep 2020 20:57:45 +0000 (+0200) Subject: fixes use of removed escapeHTML in settings.js X-Git-Tag: v20.0.0beta4~37^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=43ea48c079c7d5a3ac59709a58b02d9e36491695;p=nextcloud-server.git fixes use of removed escapeHTML in settings.js - solves non-working "additional settings" sections (at least) Signed-off-by: Arthur Schiwon --- diff --git a/apps/settings/js/settings.js b/apps/settings/js/settings.js index 24384ee316b..510180d4559 100644 --- a/apps/settings/js/settings.js +++ b/apps/settings/js/settings.js @@ -8,6 +8,15 @@ OC.Settings = _.extend(OC.Settings, { _cachedGroups: null, + escapeHTML: function (text) { + return text.toString() + .split('&').join('&') + .split('<').join('<') + .split('>').join('>') + .split('"').join('"') + .split('\'').join('''); + }, + /** * Setup selection box for group selection. * @@ -75,10 +84,10 @@ OC.Settings = _.extend(OC.Settings, { callback(selection); }, formatResult: function(element) { - return escapeHTML(element.displayname); + return self.escapeHTML(element.displayname); }, formatSelection: function(element) { - return escapeHTML(element.displayname); + return self.escapeHTML(element.displayname); }, escapeMarkup: function(m) { // prevent double markup escape