Changes with Apache 2.0b1
+ *) Really fix mod_rewrite map lookups this time. [Tony Finch]
+
*) Get the correct IP address if ServerName isn't set and we can't
find a fully-qualified domain name at startup.
PR#7170 [Danek Duvall <dduvall@eng.sun.com>]
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 = apr_pstrndup(r->pool, inp+2, key-inp-2);
- dflt = find_char_in_brackets(inp, '|', '{', '}');
+ dflt = find_char_in_brackets(key+1, '|', '{', '}');
if (dflt == NULL) {
key = apr_pstrndup(r->pool, key+1, endp-key-1);
dflt = "";