From: hno <> Date: Sat, 13 Apr 2002 20:27:41 +0000 (+0000) Subject: Deal with '%c' in custom deny_info error pages X-Git-Tag: SQUID_3_0_PRE1~1092 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=887676815b921c3f6f743fd9aa1c3e2a14606f24;p=thirdparty%2Fsquid.git Deal with '%c' in custom deny_info error pages --- diff --git a/src/errorpage.cc b/src/errorpage.cc index 69ca4266e1..eb90ebe5cf 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1,6 +1,6 @@ /* - * $Id: errorpage.cc,v 1.170 2002/04/02 11:38:03 hno Exp $ + * $Id: errorpage.cc,v 1.171 2002/04/13 14:27:41 hno Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -452,9 +452,7 @@ errorConvert(char token, ErrorState * err) p = r ? ftpUrlWith2f(r) : "[no URL]"; break; case 'c': - assert(err->type >= ERR_NONE); - assert(err->type < ERR_MAX); - p = err_type_str[err->type]; + p = errorPageName[err->type]; break; case 'e': memBufPrintf(&mb, "%d", err->xerrno);