mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
fixing more exposed XSS outlets in groups frontend
This commit is contained in:
@@ -248,6 +248,10 @@
|
||||
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
||||
},
|
||||
|
||||
escapeHTML: function(raw) {
|
||||
return raw.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">");
|
||||
},
|
||||
|
||||
isAndroidBrowser: function() {
|
||||
// http://stackoverflow.com/questions/9286355/how-to-detect-only-the-native-android-browser
|
||||
var nua = navigator.userAgent;
|
||||
|
||||
Reference in New Issue
Block a user