From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 4 May 2008 17:52:56 +0000 (+0000)
Subject: Adjust parse_http_url() call to new prototype.
X-Git-Tag: v_3_0_9~121
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/static/git.html?a=commitdiff_plain;h=4770099d9919013586b0d94ab5defe13f113dd24;p=privoxy.git

Adjust parse_http_url() call to new prototype.
---

diff --git a/filters.c b/filters.c
index 4a959751..b7a1ff85 100644
--- a/filters.c
+++ b/filters.c
@@ -1,4 +1,4 @@
-const char filters_rcs[] = "$Id: filters.c,v 1.105 2008/03/28 15:13:39 fabiankeil Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.106 2008/05/03 16:40:44 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/filters.c,v $
@@ -40,6 +40,12 @@ const char filters_rcs[] = "$Id: filters.c,v 1.105 2008/03/28 15:13:39 fabiankei
  *
  * Revisions   :
  *    $Log: filters.c,v $
+ *    Revision 1.106  2008/05/03 16:40:44  fabiankeil
+ *    Change content_filters_enabled()'s parameter from
+ *    csp->action to action so it can be also used in the
+ *    CGI code. Don't bother checking if there are filters
+ *    loaded, as that's somewhat besides the point.
+ *
  *    Revision 1.105  2008/03/28 15:13:39  fabiankeil
  *    Remove inspect-jpegs action.
  *
@@ -1735,7 +1741,7 @@ int is_untrusted_url(const struct client_state *csp)
    /*
     * If not, do we maybe trust its referrer?
     */
-   err = parse_http_url(referer, rhttp, csp);
+   err = parse_http_url(referer, rhttp, REQUIRE_PROTOCOL);
    if (err)
    {
       return 1;