]> granicus.if.org Git - apache/commitdiff
Don't truncate the string if a RewriteMap lookup has a syntax error.
authorTony Finch <fanf@apache.org>
Sat, 28 Oct 2000 03:06:22 +0000 (03:06 +0000)
committerTony Finch <fanf@apache.org>
Sat, 28 Oct 2000 03:06:22 +0000 (03:06 +0000)
Submitted by:   erik quanstrom <quanstro@clark.net>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86758 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_rewrite.c

index a3084afbbc22e7d85ef0b6b5d0c281b6d2c69abf..3830fde577ab4a5e09ed4e91218c6295d3f6eaf7 100644 (file)
@@ -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';