* substitution of backreferences
*/
typedef struct backrefinfo {
- char *source;
- int nsub;
+ const char *source;
ap_regmatch_t regmatch[AP_MAX_REG_MATCH];
} backrefinfo;
/* update briRC backref info */
if (rc && !(p->flags & CONDFLAG_NOTMATCH)) {
ctx->briRC.source = input;
- ctx->briRC.nsub = p->regexp->re_nsub;
memcpy(ctx->briRC.regmatch, regmatch, sizeof(regmatch));
}
break;
}
else {
ctx->briRR.source = apr_pstrdup(r->pool, ctx->uri);
- ctx->briRR.nsub = p->regexp->re_nsub;
memcpy(ctx->briRR.regmatch, regmatch, sizeof(regmatch));
}