]> granicus.if.org Git - apache/commit
The following is a patch to fix Dirk's patch from March 14 so that
authorJeff Trawick <trawick@apache.org>
Thu, 18 May 2000 14:11:23 +0000 (14:11 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 18 May 2000 14:11:23 +0000 (14:11 +0000)
commit1b036562191b5f27453bdb15da66aba036c77b44
tree8205ecb59d78d6d34f4ce1dcd39026c22e5d85eb
parent52da995e50b9cf183b1b400e15a6ebfc0972fab5
The following is a patch to fix Dirk's patch from March 14 so that
mod_rewrite will work without caveats. Basically Dirk was just
dropping patterns of the form ${x} if x didn't resolve to an
environment variable. That breaks mod_rewrite since mod_rewrite
uses the same syntax for some of its non-environment directives.

The patch below simply puts the behavior for unresolved values back
to what it was before Dirk's patch. If it is unresolved, it is just
left in the directive as is. Further processing will handle the value.

Dirk's optimization still holds if x is resolved. A small price is paid
if x is not resolved, but that shouldn't happen often.

(Note: some tweaks to the comments were negotiated offline after Paul
posted the patch to new-httpd.)
Submitted by: Paul Reder <rederpj@raleigh.ibm.com>
Reviewed by: Jeff Trawick

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