httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1136096 - /httpd/httpd/trunk/modules/mappers/mod_rewrite.c
Date Wed, 15 Jun 2011 15:51:57 GMT
Author: trawick
Date: Wed Jun 15 15:51:57 2011
New Revision: 1136096

URL: http://svn.apache.org/viewvc?rev=1136096&view=rev
Log:
fix unexpected enum operation

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

Modified: httpd/httpd/trunk/modules/mappers/mod_rewrite.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_rewrite.c?rev=1136096&r1=1136095&r2=1136096&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_rewrite.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_rewrite.c Wed Jun 15 15:51:57 2011
@@ -3317,7 +3317,7 @@ static const char *cmd_rewritecond(cmd_p
     newcond->pskip = a2 - newcond->pattern;
     newcond->pattern += newcond->pskip;
 
-    if (!newcond->ptype) {
+    if (newcond->ptype == CONDPAT_REGEX) {
         regexp = ap_pregcomp(cmd->pool, a2,
                              AP_REG_EXTENDED | ((newcond->flags & CONDFLAG_NOCASE)
                                              ? AP_REG_ICASE : 0));



Mime
View raw message