From: phk Date: Wed, 25 Jun 2008 09:57:54 +0000 (+0000) Subject: Handle \r in strings X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ab9e5db20dbb757f22df9c6c7bb18a8db8c7cb4;p=varnish Handle \r in strings git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2798 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/vtc.c b/varnish-cache/bin/varnishtest/vtc.c index 9a1adf89..ef47e31e 100644 --- a/varnish-cache/bin/varnishtest/vtc.c +++ b/varnish-cache/bin/varnishtest/vtc.c @@ -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++;