From: Yann Ylavic Date: Wed, 10 Jan 2018 22:00:18 +0000 (+0000) Subject: Merge r1813991 from trunk: X-Git-Tag: 2.4.30~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed1db533c6f6d51ed7b544ae238dcef841f68ca9;p=thirdparty%2Fapache%2Fhttpd.git Merge r1813991 from trunk: Save a few bytes in the conf pool when handling 'ProxyHTMLDoctype' directive with a user defined FPI Submitted by: jailletc36 Reviewed by: jailletc36, niq, jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1820798 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_proxy_html.c b/modules/filters/mod_proxy_html.c index 569fa137753..1ea005bf287 100644 --- a/modules/filters/mod_proxy_html.c +++ b/modules/filters/mod_proxy_html.c @@ -1133,7 +1133,7 @@ static const char *set_doctype(cmd_parms *cmd, void *CFG, cfg->doctype = fpi_html5; } else { - cfg->doctype = apr_pstrdup(cmd->pool, t); + cfg->doctype = t; if (l && ((l[0] == 'x') || (l[0] == 'X'))) cfg->etag = xhtml_etag; else