Changeset d83c60ec436c1936f4b7e575a76dc3fe546b6d04

Show
Ignore:
Timestamp:
10/08/09 18:34:25 (5 years ago)
Author:
Brian Clapper <bclapper@omniti.com>
git-committer:
Brian Clapper <bclapper@omniti.com> 1255026865 +0000
git-parent:

[e491b53294aeddccf8aa2e3272333c43bb569b33]

git-author:
Brian Clapper <bclapper@omniti.com> 1255026865 +0000
Message:

filtersets don't work over REST due to word mixups

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_check_rest.c

    r421cec7 rd83c60e  
    342342    ATTR2PROP(timeout); 
    343343    ATTR2PROP(disable); 
    344     ATTR2PROP(filter); 
     344    ATTR2PROP(filterset); 
    345345  } 
    346346  for(oldconfig = check->children; oldconfig; oldconfig = oldconfig->next) 
  • src/noit_filters_rest.c

    rfc257c3 rd83c60e  
    125125    if(strcmp((char *)r->name, "rule")) return NULL; 
    126126    type = (char *)xmlGetProp(r, (xmlChar *)"type"); 
    127     if(!type || (strcmp(type, "deny") && strcmp(type, "allow"))) { 
     127    if(!type || (strcmp(type, "deny") && strcmp(type, "accept"))) { 
    128128      if(type) xmlFree(type); 
    129129      return NULL;