You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2011/06/15 17:51:57 UTC
svn commit: r1136096 - /httpd/httpd/trunk/modules/mappers/mod_rewrite.c
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));