httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1143541 - in /httpd/httpd/trunk: CHANGES modules/mappers/mod_rewrite.c
Date Wed, 06 Jul 2011 20:07:56 GMT
Author: sf
Date: Wed Jul  6 20:07:56 2011
New Revision: 1143541

URL: http://svn.apache.org/viewvc?rev=1143541&view=rev
Log:
Fix regexp RewriteCond with NoCase,
reported by Steffen <info apachelounge com>

Modified:
    httpd/httpd/trunk/CHANGES
    httpd/httpd/trunk/modules/mappers/mod_rewrite.c

Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1143541&r1=1143540&r2=1143541&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Wed Jul  6 20:07:56 2011
@@ -2,6 +2,8 @@
 
 Changes with Apache 2.3.14
 
+  *) mod_rewrite: Fix regexp RewriteCond with NoCase. [Stefan Fritsch]
+
   *) mod_log_debug: New module that allows to log custom messages at various
      phases in the request processing. [Stefan Fritsch]
 

Modified: httpd/httpd/trunk/modules/mappers/mod_rewrite.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_rewrite.c?rev=1143541&r1=1143540&r2=1143541&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_rewrite.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_rewrite.c Wed Jul  6 20:07:56 2011
@@ -3298,7 +3298,8 @@ static const char *cmd_rewritecond(cmd_p
         }
     }
 
-    if ((newcond->ptype < CONDPAT_STR_LT || newcond->ptype > CONDPAT_STR_GE)
&&
+    if ((newcond->ptype != CONDPAT_REGEX) &&
+        (newcond->ptype < CONDPAT_STR_LT || newcond->ptype > CONDPAT_STR_GE)
&&
         (newcond->flags & CONDFLAG_NOCASE)) {
         ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server,
                      "RewriteCond: NoCase option for non-regex pattern '%s' "



Mime
View raw message