mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: more xss fixes
This commit is contained in:
parent
83b300435a
commit
bb5793d485
@ -413,7 +413,12 @@ pub fn not_found() Result {
|
||||
}
|
||||
|
||||
fn filter(s string) string {
|
||||
return s.replace('<', '<')
|
||||
return s.replace_each([
|
||||
'<', '<',
|
||||
'"', '"',
|
||||
'&', '&',
|
||||
])
|
||||
|
||||
}
|
||||
|
||||
pub type RawHtml = string
|
||||
|
Loading…
Reference in New Issue
Block a user