projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
action_render_string_actions_template(): Adjust space around function parameters
[privoxy.git]
/
actions.c
diff --git
a/actions.c
b/actions.c
index
7fbcd3a
..
9fd3249
100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-829,7
+829,7
@@
int update_action_bits_for_tag(struct client_state *csp, const char *tag)
}
/* and check if one of the tag patterns matches the tag, */
}
/* and check if one of the tag patterns matches the tag, */
- if (
0 == regexec(b->url->pattern.tag_regex, tag, 0, NULL, 0
))
+ if (
regex_matches(b->url->pattern.tag_regex, tag
))
{
/* if it does, update the action bit map, */
if (merge_current_action(csp->action, b->action))
{
/* if it does, update the action bit map, */
if (merge_current_action(csp->action, b->action))
@@
-884,7
+884,7
@@
jb_err check_negative_tag_patterns(struct client_state *csp, unsigned int flag)
}
for (tag = csp->tags->first; NULL != tag; tag = tag->next)
{
}
for (tag = csp->tags->first; NULL != tag; tag = tag->next)
{
- if (
0 == regexec(b->url->pattern.tag_regex, tag->str, 0, NULL, 0
))
+ if (
regex_matches(b->url->pattern.tag_regex, tag->str
))
{
/*
* The pattern matches at least one tag, thus the action
{
/*
* The pattern matches at least one tag, thus the action