fixing more exposed XSS outlets in groups frontend

This commit is contained in:
Julian Lam
2015-01-18 17:03:08 -05:00
parent 491e0060d4
commit 4317b3c872
3 changed files with 7 additions and 3 deletions

View File

@@ -248,6 +248,10 @@
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
},
escapeHTML: function(raw) {
return raw.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;");
},
isAndroidBrowser: function() {
// http://stackoverflow.com/questions/9286355/how-to-detect-only-the-native-android-browser
var nua = navigator.userAgent;