]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4852: regression in deny_info %R macro (#193) M-staged-PR193
authorAmos Jeffries <yadij@users.noreply.github.com>
Thu, 3 May 2018 15:52:04 +0000 (15:52 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 3 May 2018 15:52:09 +0000 (15:52 +0000)
commitb2b6c9f439843f2c66c172b444c76107c33f6ed5
tree488700355e9ddee3f3473f02c4a28ca1cd58a91b
parent8566b13e7cf0f42b37bcc5d894526d08fbd81af9
Bug 4852: regression in deny_info %R macro (#193)

SBuf::c_str() produces a temporary c-string which is not
guaranteed to survive, and does not survive as long as required
to print the deny_info URL. The HttpRequest::url path SBuf has
a much longer lifetime, so use a const reference to it instead.

This was added in 51b5dcf59c93ef76fefacfeae837b076a624596e
along with many other identical uses which have since been
removed by other refactorings.
src/errorpage.cc