svn commit: r1936403 - httpd/httpd/trunk/modules/mappers

[email protected] Mon, 20 Jul 2026 19:55:13 -0000
Newsgroups gmane.comp.apache.cvs
Message-ID <178457731375.3096509.5731259663911887627@svn03-he-fi>
Author: covener
Date: Mon Jul 20 19:55:13 2026
New Revision: 1936403

Log:
protect as in r1936401

Modified:
   httpd/httpd/trunk/modules/mappers/mod_dir.c

Modified: httpd/httpd/trunk/modules/mappers/mod_dir.c
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_dir.c	Mon Jul 20 19:52:27 2026	(r1936402)
+++ httpd/httpd/trunk/modules/mappers/mod_dir.c	Mon Jul 20 19:55:13 2026	(r1936403)
@@ -312,7 +312,7 @@ static int fixup_dir(request_rec *r)
     /* 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)) { 
+        if (r->content_type && !strcmp(r->content_type, DIR_MAGIC_TYPE)) {
             r->content_type = NULL;
         }
         return DECLINED;