From: oes Date: Wed, 24 Apr 2002 02:11:17 +0000 (+0000) Subject: Jon's multiple AF patch: url_actions now evaluates rules X-Git-Tag: v_3_0_branchpoint~261 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=a6961736a229732b83b51783852b81f2de0c8597 Jon's multiple AF patch: url_actions now evaluates rules from all AFs. --- diff --git a/filters.c b/filters.c index fbb1694a..ff70ac56 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.56 2002/04/05 15:51:24 oes Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.57 2002/04/08 20:38:34 swa Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -38,6 +38,9 @@ const char filters_rcs[] = "$Id: filters.c,v 1.56 2002/04/05 15:51:24 oes Exp $" * * Revisions : * $Log: filters.c,v $ + * Revision 1.57 2002/04/08 20:38:34 swa + * fixed JB spelling + * * Revision 1.56 2002/04/05 15:51:24 oes * - bugfix: error-pages now get correct request protocol * - fix for invalid HTML in trust info @@ -1498,16 +1501,21 @@ void url_actions(struct http_request *http, { struct file_list *fl; struct url_actions *b; + int i; init_current_action(csp->action); - if (((fl = csp->actions_list) == NULL) || ((b = fl->f) == NULL)) + for (i = 0; i < MAX_ACTION_FILES; i++) { - return; - } + if (((fl = csp->actions_list[i]) == NULL) || ((b = fl->f) == NULL)) + { + return; + } - apply_url_actions(csp->action, http, b); + apply_url_actions(csp->action, http, b); + } + return; }