mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Forgot to escape backslashes.
This commit is contained in:
@@ -19,10 +19,8 @@ char* guac_escape_string(const char* str) {
|
|||||||
switch (str[i]) {
|
switch (str[i]) {
|
||||||
|
|
||||||
case ';':
|
case ';':
|
||||||
length += 2;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case ',':
|
case ',':
|
||||||
|
case '\\':
|
||||||
length += 2;
|
length += 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -49,6 +47,11 @@ char* guac_escape_string(const char* str) {
|
|||||||
*(current++) = 'c';
|
*(current++) = 'c';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case '\\':
|
||||||
|
*(current++) = '\\';
|
||||||
|
*(current++) = '\\';
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
*(current++) = str[i];
|
*(current++) = str[i];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user