-*- coding: utf-8 -*-
Changes with Apache 2.4.63
+ *) mod_rewrite: Don't require [UNC] flag to preserve a leading //
+ added by applying the perdir prefix to the substitution.
+ [Ruediger Pluem, Eric Covener]
+
*) Windows: Restore the ability to "Include" configuration files on UNC
paths. PR69313 [Eric Covener]
char *newuri = NULL;
request_rec *r = ctx->r;
int is_proxyreq = 0;
+ int prefix_added = 0;
ctx->uri = r->filename;
newuri, ctx->perdir, newuri);
newuri = apr_pstrcat(r->pool, ctx->perdir, newuri, NULL);
+ prefix_added = 1;
}
else if (!(p->flags & (RULEFLAG_PROXY | RULEFLAG_FORCEREDIRECT))) {
/* Not an absolute URI-path and the scheme (if any) is unknown,
newuri, newuri);
newuri = apr_pstrcat(r->pool, "/", newuri, NULL);
+ prefix_added = 1;
}
}
return RULE_RC_MATCH;
}
- if (!(p->flags & RULEFLAG_UNC)) {
+ if (!((p->flags & RULEFLAG_UNC) || prefix_added)) {
/* merge leading slashes, unless they were literals in the sub */
if (!AP_IS_SLASH(p->output[0]) || !AP_IS_SLASH(p->output[1])) {
while (AP_IS_SLASH(r->filename[0]) &&