Fix various possible XSS attacks

This commit is contained in:
Bubka
2023-06-30 14:50:57 +02:00
parent 3d59b8b3c9
commit bac39882c3
6 changed files with 59 additions and 11 deletions

View File

@ -126,6 +126,10 @@ Vue.mixin({
this.setTheme(this.$root.userPreferences.theme)
},
strip_tags (str) {
return str.replace(/(<([^> ]+)>)/ig, "")
}
}
})