]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.c
changed parsing/cvar expanding rules to allow better handling of cvars with evil...
[xonotic/darkplaces.git] / common.c
index 3a40fb6521efc1e1f6236a2df2e6c2ac569a2e4e..8f532520a66d3685d238738d1d2678b7762413d0 100644 (file)
--- a/common.c
+++ b/common.c
@@ -1085,8 +1085,8 @@ skipwhite:
                                *datapointer = NULL;
                                return false;
                        }
-                       // allow escaped " case
-                       if (*data == '\\' && data[1] == '\"')
+                       // allow escaped " and \ case
+                       if (*data == '\\' && (data[1] == '\"' || data[1] == '\\'))
                                data++;
                        com_token[len++] = *data;
                }