Received: (qmail 60838 invoked by uid 501); 19 Dec 2000 21:54:45 -0000 Message-Id: <20001219215445.60836.qmail@locus.apache.org> Date: 19 Dec 2000 21:54:45 -0000 From: Stephen Roderick Reply-To: steve-apache@gohome.net To: submit@bugz.apache.org Subject: Lost functionality betweeb 1.3.9 and 1.3.14 related to RewriteMaps X-Send-Pr-Version: 3.110 >Number: 6997 >Category: mod_rewrite >Synopsis: Lost functionality betweeb 1.3.9 and 1.3.14 related to RewriteMaps >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: duplicate >Submitter-Id: apache >Arrival-Date: Tue Dec 19 14:00:03 PST 2000 >Closed-Date: Tue Dec 19 23:17:20 PST 2000 >Last-Modified: Tue Dec 19 23:17:20 PST 2000 >Originator: steve-apache@gohome.net >Release: 1.3.14 >Organization: >Environment: Linux 2.2.16-3smp >Description: RewriteMap lowercase int:tolower RewriteRule ^/([a-zA-Z]+)$ "${lowercase:$1}" [E=RRDEBUG:$1,R,L] The $1 backref in ${lowercase:$1} is not expanded before passing to the tolower rewritemap func, instead tolower is called first and then an expansion is done. This worked the opposite 1.3.9. It is highly desirable that the expansion occur before the lookup NOT after the lookup. >How-To-Repeat: >Fix: Well, you would have to rewrite the code with do_expand to rewrite first and then do the map lookup. >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: slive State-Changed-When: Tue Dec 19 23:17:20 PST 2000 State-Changed-Why: [This is a standard response.] This issue has been reported before; please search the FAQ and the bug database. Thanks for using Apache! Class-Changed-From-To: sw-bug-duplicate Class-Changed-By: slive Class-Changed-When: Tue Dec 19 23:17:20 PST 2000 >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]