From: Eric Covener Date: Mon, 18 Feb 2013 18:46:23 +0000 (+0000) Subject: Unbreak default case of RewriteBase not being set after r1410681 X-Git-Tag: 2.5.0-alpha~5765 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08b292cec6872c61cd95f36a94a8c1f07133a405;p=apache Unbreak default case of RewriteBase not being set after r1410681 Contributed By: Evgeny Barsukov Reviewed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1447426 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 24c46bc37e..d42087e0e6 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) mod_rewrite: fix recent regression that caused RewriteBase to be ignored. + [Evgeny Barsukov ] + *) core: ap_rgetline_core now pulls from r->proto_input_filters. *) mod_proxy_html: process parsed comments immediately. diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index cd293013d7..4fa90546c1 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -2829,6 +2829,9 @@ static void *config_perdir_merge(apr_pool_t *p, void *basev, void *overridesv) a->baseurl = (overrides->baseurl_set == 0) ? base->baseurl : overrides->baseurl; a->baseurl_set = overrides->baseurl_set || base->baseurl_set; } + else { + a->baseurl = overrides->baseurl; + } a->directory = overrides->directory;