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 15147] New: - mod_rewrite has problems with [ \- ]
Date Fri, 06 Dec 2002 19:28:47 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=15147>.
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=15147

mod_rewrite has problems with [ \- ]

           Summary: mod_rewrite has problems with [ \- ]
           Product: Apache httpd-1.3
           Version: 1.3.27
          Platform: Sun
        OS/Version: FreeBSD
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: danlo@danlo.com


The following two regex are identical, but where the '._@' is placed causes
the regex to compile or not compile.

This doesn't compile
    RewriteRule ^/([A-Za-z0-9\-._@]+)$ /dothis.cgi?username=$1

This does compile.
    RewriteRule ^/([._@A-Za-z0-9\-]+)$ /dothis.cgi?username=$1

I think the problem has to do with the \- (the hypen is a valid character that 
I want).

I think the problem has to do with "who does the un-escaping"...



Thank you,


Daniel Lo
danlo@danlo.com

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


Mime
View raw message