xend: urlencode: Properly escape '&'

Since we send the sexpr to xend via HTTP, we need to properly escape
'&'
This commit is contained in:
Cole Robinson 2010-11-18 17:52:05 -05:00
parent 21108d37a3
commit c8b2a23c02

View File

@ -710,6 +710,7 @@ urlencode(const char *string)
switch (string[i]) {
case ' ':
case '\n':
case '&':
snprintf(ptr, 4, "%%%02x", string[i]);
ptr += 3;
break;