mirror of
https://github.com/apache/httpd.git
synced 2026-01-06 09:01:14 +03:00
+ *) mod_dir: Prevent the internal identifier "httpd/unix-directory" from
+ appearing as a Content-Type response header when requests for a directory + are rewritten by mod_rewrite. [Eric Covener] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1695583 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -1,6 +1,10 @@
|
||||
-*- coding: utf-8 -*-
|
||||
Changes with Apache 2.5.0
|
||||
|
||||
*) mod_dir: Prevent the internal identifier "httpd/unix-directory" from
|
||||
appearing as a Content-Type response header when requests for a directory
|
||||
are rewritten by mod_rewrite. [Eric Covener]
|
||||
|
||||
*) mod_rewrite: Allow cookies set by mod_rewrite to contain ':' by accepting
|
||||
';' as an alternate separator. PR47241.
|
||||
[<bugzilla schermesser com>, Eric Covener]
|
||||
|
||||
@@ -279,11 +279,19 @@ static int fixup_dir(request_rec *r)
|
||||
}
|
||||
|
||||
if (d->checkhandler == MODDIR_ON && strcmp(r->handler, DIR_MAGIC_TYPE)) {
|
||||
/* Prevent DIR_MAGIC_TYPE from leaking out when someone has taken over */
|
||||
if (!strcmp(r->content_type, DIR_MAGIC_TYPE)) {
|
||||
r->content_type = NULL;
|
||||
}
|
||||
return DECLINED;
|
||||
}
|
||||
|
||||
/* we're running between mod_rewrites fixup and its internal redirect handler, step aside */
|
||||
if (!strcmp(r->handler, REWRITE_REDIRECT_HANDLER_NAME)) {
|
||||
/* Prevent DIR_MAGIC_TYPE from leaking out when someone has taken over */
|
||||
if (!strcmp(r->content_type, DIR_MAGIC_TYPE)) {
|
||||
r->content_type = NULL;
|
||||
}
|
||||
return DECLINED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user