]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
escape ssl vars
authorEric Covener <covener@apache.org>
Mon, 7 Jul 2025 11:50:41 +0000 (11:50 +0000)
committerEric Covener <covener@apache.org>
Mon, 7 Jul 2025 11:50:41 +0000 (11:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1927034 13f79535-47bb-0310-9956-ffa450edef68

modules/loggers/mod_log_config.c

index 17735b9b3fa16b9c602e7353f95b6a6aaaea13e6..b7ecda673887cd0e5027c86d4980cc8c4bc8e12d 100644 (file)
@@ -914,7 +914,7 @@ static const char *log_ssl_var(request_rec *r, char *a)
 
     /* Any SSL module responsible for the connection/request will provide the value */
     result = ap_ssl_var_lookup(r->pool, r->server, r->connection, r, a);
-    return (result && result[0])? result : NULL;
+    return (result && result[0])? ap_escape_logitem(r->pool, result) : NULL;
 }
 
 static const char *log_ssl_var_short(request_rec *r, char *a)