mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: fix mutable args
This commit is contained in:

committed by
Alexander Medvednikov

parent
34e0b164eb
commit
0bcc53c366
@ -824,14 +824,15 @@ fn parse_query_silent(query string) Values {
|
||||
|
||||
fn _parse_query(m mut Values, query string) ?bool {
|
||||
mut had_error := false
|
||||
for query != '' {
|
||||
mut key := query
|
||||
mut q := query
|
||||
for q != '' {
|
||||
mut key := q
|
||||
mut i := key.index_any('&;')
|
||||
if i >= 0 {
|
||||
query = key.right(i+1)
|
||||
q = key.right(i+1)
|
||||
key = key.left(i)
|
||||
} else {
|
||||
query = ''
|
||||
q = ''
|
||||
}
|
||||
if key == '' {
|
||||
continue
|
||||
|
Reference in New Issue
Block a user