]> err.no Git - varnish/commitdiff
Handle \r in strings
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 25 Jun 2008 09:57:54 +0000 (09:57 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 25 Jun 2008 09:57:54 +0000 (09:57 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2798 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc.c

index 9a1adf899235c9eb055def3871cacfc171307ddf..ef47e31e6520c3fc220d79c470d381a4b27b0071 100644 (file)
@@ -123,6 +123,9 @@ parse_string(char *buf, const struct cmds *cmd, void *priv)
                                        if (*p == '\\' && p[1] == 'n') {
                                                *q++ = '\n';
                                                p++;
+                                       } else if (*p == '\\' && p[1] == 'r') {
+                                               *q++ = '\r';
+                                               p++;
                                        } else if (*p == '\\' && p[1] == '\\') {
                                                *q++ = '\\';
                                                p++;