summaryrefslogtreecommitdiffstats
path: root/modules/generators
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2024-07-02 13:19:45 +0200
committerRuediger Pluem <rpluem@apache.org>2024-07-02 13:19:45 +0200
commitfbe782e6c4a7c255790b80c74d5b8ee320ec93d2 (patch)
treea4f720119beaa2f7c2815e451d99e2881ea7cdf1 /modules/generators
parent* Follow up to r1918814: Always trust content types that we set literally (diff)
downloadapache2-fbe782e6c4a7c255790b80c74d5b8ee320ec93d2.tar.xz
apache2-fbe782e6c4a7c255790b80c74d5b8ee320ec93d2.zip
* Follow up to r1918814: Strings are from configuration and thus trusted
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918823 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/generators')
-rw-r--r--modules/generators/mod_autoindex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c
index f1c08b4b12..3cafd44b0c 100644
--- a/modules/generators/mod_autoindex.c
+++ b/modules/generators/mod_autoindex.c
@@ -2060,11 +2060,11 @@ static int index_directory(request_rec *r,
#endif
}
if (*charset) {
- ap_set_content_type(r, apr_pstrcat(r->pool, ctype, ";charset=",
- charset, NULL));
+ ap_set_content_type_ex(r, apr_pstrcat(r->pool, ctype, ";charset=",
+ charset, NULL), 1);
}
else {
- ap_set_content_type(r, ctype);
+ ap_set_content_type_ex(r, ctype, 1);
}
if (autoindex_opts & TRACK_MODIFIED) {