vweb: more xss fixes
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