From: Tony Finch Date: Sat, 28 Oct 2000 03:06:22 +0000 (+0000) Subject: Don't truncate the string if a RewriteMap lookup has a syntax error. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=deba2f5af4e05199f31972c399de4ca24ed3065a;p=apache Don't truncate the string if a RewriteMap lookup has a syntax error. Submitted by: erik quanstrom git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86758 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index a3084afbbc..3830fde577 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -2345,6 +2345,7 @@ static void do_expand(request_rec *r, char *input, char *buffer, int nbuf, char *empty = ""; key = strchr(inp, ':'); if (key == NULL) { + *endp = '}'; goto skip; } *key++ = '\0';