mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
xend: urlencode: Properly escape '&'
Since we send the sexpr to xend via HTTP, we need to properly escape '&'
This commit is contained in:
parent
21108d37a3
commit
c8b2a23c02
@ -710,6 +710,7 @@ urlencode(const char *string)
|
|||||||
switch (string[i]) {
|
switch (string[i]) {
|
||||||
case ' ':
|
case ' ':
|
||||||
case '\n':
|
case '\n':
|
||||||
|
case '&':
|
||||||
snprintf(ptr, 4, "%%%02x", string[i]);
|
snprintf(ptr, 4, "%%%02x", string[i]);
|
||||||
ptr += 3;
|
ptr += 3;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user