]> git.pld-linux.org Git - packages/squid.git/blame - squid-2.5.STABLE5-deny_info.patch
- more patches:
[packages/squid.git] / squid-2.5.STABLE5-deny_info.patch
CommitLineData
230f348a
AM
1Index: squid/src/errorpage.c
2diff -c squid/src/errorpage.c:1.167.2.9 squid/src/errorpage.c:1.167.2.10
3*** squid/src/errorpage.c:1.167.2.9 Thu Nov 6 09:13:03 2003
4--- squid/src/errorpage.c Mon Mar 29 02:41:36 2004
5***************
6*** 606,614 ****
7 httpBuildVersion(&version, 1, 0);
8 if (strchr(name, ':')) {
9 /* Redirection */
10- char *quoted_url = rfc1738_escape_part(errorConvert('u', err));
11 httpReplySetHeaders(rep, version, HTTP_MOVED_TEMPORARILY, NULL, "text/html", 0, 0, squid_curtime);
12! httpHeaderPutStrf(&rep->header, HDR_LOCATION, name, quoted_url);
13 httpHeaderPutStrf(&rep->header, HDR_X_SQUID_ERROR, "%d %s\n", err->http_status, "Access Denied");
14 } else {
15 MemBuf content = errorBuildContent(err);
16--- 606,616 ----
17 httpBuildVersion(&version, 1, 0);
18 if (strchr(name, ':')) {
19 /* Redirection */
20 httpReplySetHeaders(rep, version, HTTP_MOVED_TEMPORARILY, NULL, "text/html", 0, 0, squid_curtime);
21! if (err->request) {
22! char *quoted_url = rfc1738_escape_part(urlCanonical(err->request));
23! httpHeaderPutStrf(&rep->header, HDR_LOCATION, name, quoted_url);
24! }
25 httpHeaderPutStrf(&rep->header, HDR_X_SQUID_ERROR, "%d %s\n", err->http_status, "Access Denied");
26 } else {
27 MemBuf content = errorBuildContent(err);
This page took 0.217917 seconds and 4 git commands to generate.