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 18546] - $1 var lost proxying
Date Wed, 02 Apr 2003 06:43:04 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18546>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18546

$1 var lost proxying





------- Additional Comments From apache-bug@bowman.bs  2003-04-02 06:43 -------
I don't really know what I'm doing here, be warned.

It seems like the ap_regexec for the RewriteRule is
returning different regmatch structure causing the
problem.  The debug code follows.  I can't see why this
would be though.

1.3.24
 (2) bsb n1 $1(0-6) $2(0-6) $3(135281828-135281828) uri(admin/)
1.3.27
 (2) bsb n1 $1(0-0) $2(6-0) $3(0-0) uri(admin/)

    rc = (ap_regexec(regexp, uri, regexp->re_nsub+1, regmatch, 0) == 0);
    if (! (( rc && !(p->flags & RULEFLAG_NOTMATCH)) ||
           (!rc &&  (p->flags & RULEFLAG_NOTMATCH))   ) ) {
        return 0;
    }

/* BSB */
if(regexp->re_nsub > 0 ) {
    rewritelog(r, 2, "bsb n%d $1(%d-%d) $2(%d-%d) $3(%d-%d) uri(%s)",
        regexp->re_nsub,
        regmatch[0].rm_so,
        regmatch[0].rm_eo,
        regmatch[1].rm_so,
        regmatch[1].rm_eo,
        regmatch[2].rm_so,
        regmatch[2].rm_eo,
        uri);
} else {
    rewritelog(r, 2, "bsb rexep empty");
}

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


Mime
View raw message