httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28880] New: - Backreference in RedirectMatch always inserts $1 at the end of destination url
Date Mon, 10 May 2004 16:34:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28880>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28880

Backreference in RedirectMatch always inserts $1 at the end of destination url

           Summary: Backreference in RedirectMatch always inserts $1 at the
                    end of destination url
           Product: Apache httpd-1.3
           Version: 1.3.29
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: apache.org@fsckit.net


Given a VirtualHost setup that looks like:

<VirtualHost *>
   ServerName rd.example.com
   ServerAdmin webmaster@example.com
   RedirectMatch permanent (.*)$ http://rd.example.net/rd$1\&siteid=example
</VirtualHost>

I would expect a request for a url like:

http://rd.example.com/?r=i126c14p127n5819&u=3CA930F736

to redirect to:

http://rd.example.net/rd/?r=i126c14p127n5819&u=3CA930F736&siteid=example

but the resulting url is in fact:

http://rd.example.net/rd/&siteid=example?r=i126c14p127n5819&u=3CA930F736

which given the example in the RedirectMatch documentation and simple
expectation, seems like a bug in mod_alias.

This behavior is seen with 1.3.29 on RedHat Linux 7.1 and 7.3  built with the
following config.status:

./configure \
"--with-layout=Apache" \
"--enable-module=so" \
"--enable-module=headers" \
"--enable-shared=info" \
"--activate-module=src/modules/php4/libphp4.a" \
"$@"

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message