From: hno <>
Date: Tue, 10 Sep 2002 15:54:52 +0000 (+0000)
Subject: the mailto links on Squid's ERR pages now contain data about the
X-Git-Tag: SQUID_3_0_PRE1~766
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5fb34f1920bc7af3a1f3476f979dbe6aa9d2c94;p=thirdparty%2Fsquid.git
the mailto links on Squid's ERR pages now contain data about the
cccurred error by default, so that the email will contain this data in
its body. This feature can be disabled via the email_err_data directive.
(Clemens Löser)
---
diff --git a/ChangeLog b/ChangeLog
index e33cc8c792..e6b631a4f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,11 @@ Changes to squid-2.6 ():
(Robert Cohren)
- Nuked num32 types, and made type detection more robust by the
use of typedefs rather than #defines.
+ - the mailto links on Squid's ERR pages now contain data about the
+ occurred error by default, so that the email will contain this data in
+ its body. This feature can be disabled via the email_err_data directive.
+ (Clemens Löser)
+
Changes to squid-2.5 ():
diff --git a/src/cf.data.pre b/src/cf.data.pre
index 4ae46c7e4c..a2b50839d1 100644
--- a/src/cf.data.pre
+++ b/src/cf.data.pre
@@ -1,6 +1,6 @@
#
-# $Id: cf.data.pre,v 1.283 2002/09/04 13:33:13 hno Exp $
+# $Id: cf.data.pre,v 1.284 2002/09/10 09:54:52 hno Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
@@ -2662,6 +2662,18 @@ DOC_START
insert a %L tag in the error template file.
DOC_END
+NAME: email_err_data
+COMMENT: on|off
+TYPE: onoff
+LOC: Config.onoff.emailErrData
+DEFAULT: on
+DOC_START
+ If enabled, information about the occurred error will be
+ included in the mailto links of the ERR pages (if %W is set)
+ so that the email body then contains the data.
+ Syntax is %w
+DOC_END
+
NAME: deny_info
TYPE: denyinfo
diff --git a/src/errorpage.cc b/src/errorpage.cc
index ec3cf44e27..d4ad5032d1 100644
--- a/src/errorpage.cc
+++ b/src/errorpage.cc
@@ -1,6 +1,6 @@
/*
- * $Id: errorpage.cc,v 1.174 2002/07/18 23:43:14 hno Exp $
+ * $Id: errorpage.cc,v 1.175 2002/09/10 09:54:53 hno Exp $
*
* DEBUG: section 4 Error Generation
* AUTHOR: Duane Wessels
@@ -65,7 +65,9 @@ static const struct {
ERR_SQUID_SIGNATURE,
"\n
\n"
"