X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=actions.c;h=4257acc1ca950ac2e297b3f77032dc7b057096dc;hb=f4107f65b676b63a199fe4230e58695757f9f199;hp=b4904c92300bc594f316182fdce625f93900bf69;hpb=c4f97e9c6a51667f8b68c4aae1816fa4faf7ee8b;p=privoxy.git diff --git a/actions.c b/actions.c index b4904c92..4257acc1 100644 --- a/actions.c +++ b/actions.c @@ -1,4 +1,4 @@ -const char actions_rcs[] = "$Id: actions.c,v 1.44 2008/03/04 18:30:34 fabiankeil Exp $"; +const char actions_rcs[] = "$Id: actions.c,v 1.45 2008/03/24 11:21:02 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/actions.c,v $ @@ -33,6 +33,11 @@ const char actions_rcs[] = "$Id: actions.c,v 1.44 2008/03/04 18:30:34 fabiankeil * * Revisions : * $Log: actions.c,v $ + * Revision 1.45 2008/03/24 11:21:02 fabiankeil + * Share the action settings for multiple patterns in the same + * section so we waste less memory for gigantic block lists + * (and load them slightly faster). Reported by Franz Schwartau. + * * Revision 1.44 2008/03/04 18:30:34 fabiankeil * Remove the treat-forbidden-connects-like-blocks action. We now * use the "blocked" page for forbidden CONNECT requests by default. @@ -643,7 +648,8 @@ jb_err get_action_token(char **line, char **name, char **value) *********************************************************************/ static int action_used_to_be_valid(const char *action) { - return (0 == strcmpic(action, "treat-forbidden-connects-like-blocks")); + return (0 == strcmpic(action, "treat-forbidden-connects-like-blocks") + || 0 == strcmpic(action, "kill-popups")); } /*********************************************************************