mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
vlib: fix mutable args
This commit is contained in:
parent
34e0b164eb
commit
0bcc53c366
13 changed files with 54 additions and 54 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue