From ffa1c171fa08a9a3f3146bf875e48ca786caa1b6 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 6 Sep 2010 18:54:14 -0700 Subject: [PATCH] Forgot to escape backslashes. --- guacamole/proxy/protocol.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/guacamole/proxy/protocol.c b/guacamole/proxy/protocol.c index 6afae1968..b6455c2a9 100644 --- a/guacamole/proxy/protocol.c +++ b/guacamole/proxy/protocol.c @@ -19,10 +19,8 @@ char* guac_escape_string(const char* str) { switch (str[i]) { case ';': - length += 2; - break; - case ',': + case '\\': length += 2; break; @@ -49,6 +47,11 @@ char* guac_escape_string(const char* str) { *(current++) = 'c'; break; + case '\\': + *(current++) = '\\'; + *(current++) = '\\'; + break; + default: *(current++) = str[i]; }