fixes use of removed escapeHTML in settings.js
- solves non-working "additional settings" sections (at least) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
47e7257c80
commit
43ea48c079
|
@ -8,6 +8,15 @@ OC.Settings = _.extend(OC.Settings, {
|
||||||
|
|
||||||
_cachedGroups: null,
|
_cachedGroups: null,
|
||||||
|
|
||||||
|
escapeHTML: function (text) {
|
||||||
|
return text.toString()
|
||||||
|
.split('&').join('&')
|
||||||
|
.split('<').join('<')
|
||||||
|
.split('>').join('>')
|
||||||
|
.split('"').join('"')
|
||||||
|
.split('\'').join(''');
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setup selection box for group selection.
|
* Setup selection box for group selection.
|
||||||
*
|
*
|
||||||
|
@ -75,10 +84,10 @@ OC.Settings = _.extend(OC.Settings, {
|
||||||
callback(selection);
|
callback(selection);
|
||||||
},
|
},
|
||||||
formatResult: function(element) {
|
formatResult: function(element) {
|
||||||
return escapeHTML(element.displayname);
|
return self.escapeHTML(element.displayname);
|
||||||
},
|
},
|
||||||
formatSelection: function(element) {
|
formatSelection: function(element) {
|
||||||
return escapeHTML(element.displayname);
|
return self.escapeHTML(element.displayname);
|
||||||
},
|
},
|
||||||
escapeMarkup: function(m) {
|
escapeMarkup: function(m) {
|
||||||
// prevent double markup escape
|
// prevent double markup escape
|
||||||
|
|
Loading…
Reference in New Issue