httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher A Bongaarts <...@tc.umn.edu>
Subject [PATCH] fix for mod_rewrite RewriteMap in 1.3.17
Date Wed, 31 Jan 2001 23:05:26 GMT
[Apologies if this is not the ideal place for this...]

Here's a patch against the released 1.3.17 mod_rewrite that fixes
RewriteMap expansion.  This fixes PR7157 and PR7158 (duplicates) in
the bugdb.

%%  Christopher A. Bongaarts  %%  cab@tc.umn.edu       %%
%%  Internet Services         %%  http://umn.edu/~cab  %%
%%  University of Minnesota   %%  +1 (612) 625-1809    %%
----snip----
--- mod_rewrite.c.orig	Tue Jan 30 12:19:42 2001
+++ mod_rewrite.c	Wed Jan 31 16:47:09 2001
@@ -2287,11 +2287,11 @@
 		char *map, *key, *dflt, *result;
 		char xkey[MAX_STRING_LEN];
 		char xdflt[MAX_STRING_LEN];
-		key = find_char_in_brackets(inp, ':', '{', '}');
+		key = find_char_in_brackets(inp+2, ':', '{', '}');
 		if (key == NULL)
 		    goto skip;
 		map  = ap_pstrndup(r->pool, inp+2, key-inp-2);
-		dflt = find_char_in_brackets(inp, '|', '{', '}');
+		dflt = find_char_in_brackets(inp+2, '|', '{', '}');
 		if (dflt == NULL) {
 		    key  = ap_pstrndup(r->pool, key+1, endp-key-1);
 		    dflt = "";

Mime
View raw message