-const char filters_rcs[] = "$Id: filters.c,v 1.58.2.3 2002/09/25 14:51:51 oes Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.58.2.4 2003/02/28 12:52:45 oes Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/Attic/filters.c,v $
*
* Revisions :
* $Log: filters.c,v $
+ * Revision 1.58.2.4 2003/02/28 12:52:45 oes
+ * Fixed a typo
+ *
* Revision 1.58.2.3 2002/09/25 14:51:51 oes
* Added basic support for OPTIONS and TRACE HTTP methods:
* New function direct_response which handles OPTIONS and
if (!err) err = map(exports, "protocol", 1, csp->http->ssl ? "https://" : "http://", 1);
if (!err) err = map(exports, "hostport", 1, html_encode(csp->http->hostport), 0);
if (!err) err = map(exports, "path", 1, html_encode(csp->http->path), 0);
+ if (!err) err = map(exports, "path-ue", 1, url_encode(csp->http->path), 0);
if (err)
{
# protocol:
# The request's protocol: http:// or https://
# hostport:
-# The host and port part of the request that lead to this problem
+# The host and port part of the blocked request's URL.
# path:
-# The path part of the request that lead to this problem
+# The path part of the blocked request's URL.
+# path-ue:
+# The path part of the blocked request's URL, url-encoded.
#
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
document.write('\
<p class="small" align="center"> \
<a href="@default-cgi@" target="_blank">Privoxy</a> blocked <b>@protocol@@hostport@@path@</b>. \
- <br><a href="@default-cgi@show-url-info?url=@hostport@@path@" target="_blank">See why</a> \
+ <br><a href="@default-cgi@show-url-info?url=@hostport@@path-ue@" target="_blank">See why</a> \
<!-- @if-force-support-start --> \
or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>. \
<!-- if-force-support-end@ --> \
<td class="box" colspan="2"> \
<h2>Request for blocked URL</h2> \
<p>Your request for <b>@protocol@@hostport@@path@</b> was blocked. \
- <br><a href="@default-cgi@show-url-info?url=@hostport@@path@">See why</a> \
+ <br><a href="@default-cgi@show-url-info?url=@hostport@@path-ue@">See why</a> \
<!-- @if-force-support-start --> \
or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>. \
<!-- if-force-support-end@ --> \
<noscript>
<p class="small" align="center">
<a href="@default-cgi@" target="_blank">Privoxy</a> blocked <b>@protocol@@hostport@@path@</b>.
- <br><a href="@default-cgi@show-url-info?url=@hostport@@path@" target="_blank">See why</a>
+ <br><a href="@default-cgi@show-url-info?url=@hostport@@path-ue@" target="_blank">See why</a>
<!-- @if-force-support-start -->
or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>.
<!-- if-force-support-end@ -->