mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: escape form key, not only value. (#6269)
This commit is contained in:
parent
ea31c2a643
commit
b1a8e1e5b2
@ -494,7 +494,9 @@ fn (mut ctx Context) parse_form(s string) {
|
||||
}
|
||||
keyval := word.trim_space().split('=')
|
||||
if keyval.len != 2 { continue }
|
||||
key := keyval[0]
|
||||
key := urllib.query_unescape(keyval[0]) or {
|
||||
continue
|
||||
}
|
||||
val := urllib.query_unescape(keyval[1]) or {
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user