Skip to content

Commit beb75b5

Browse files
committed
future-proof by flattening expr rc to 0/1
Submitted By: ylavic git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1927314 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6e59b12 commit beb75b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/mappers/mod_rewrite.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4283,6 +4283,10 @@ static cond_return_type apply_rewrite_cond(rewritecond_entry *p, rewrite_ctx *ct
42834283
p->pattern - p->pskip, err);
42844284
rc = COND_RC_NOMATCH;
42854285
}
4286+
else {
4287+
rc = (rc > 0) ? COND_RC_MATCH : COND_RC_NOMATCH;
4288+
}
4289+
42864290
/* update briRC backref info */
42874291
if (rc && !(p->flags & CONDFLAG_NOTMATCH)) {
42884292
ctx->briRC.source = source;

0 commit comments

Comments
 (0)