提交 c8b2a23c 编写于 作者: C Cole Robinson

xend: urlencode: Properly escape '&'

Since we send the sexpr to xend via HTTP, we need to properly escape
'&'
上级 21108d37
......@@ -710,6 +710,7 @@ urlencode(const char *string)
switch (string[i]) {
case ' ':
case '\n':
case '&':
snprintf(ptr, 4, "%%%02x", string[i]);
ptr += 3;
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册