-const char filters_rcs[] = "$Id: filters.c,v 1.18 2001/06/29 13:27:38 oes Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.19 2001/06/29 21:45:41 oes Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
*
* Revisions :
* $Log: filters.c,v $
+ * Revision 1.19 2001/06/29 21:45:41 oes
+ * Indentation, CRLF->LF, Tab-> Space
+ *
* Revision 1.18 2001/06/29 13:27:38 oes
* - Cleaned up, renamed and reorderd functions
* and improved comments
struct http_request rhttp[1];
char *p, *h;
+ /*
+ * If we don't have a trustlist, we trust everybody
+ */
if (((fl = csp->tlist) == NULL) || ((b = fl->f) == NULL))
{
return(0);
}
+
+ /*
+ * Do we trust the request URL itself?
+ */
*url = dsplit(csp->http->host);
/* if splitting the domain fails, punt */
return(1);
}
+
+ /*
+ * If not, do we maybe trust its referrer?
+ */
*url = dsplit(rhttp->host);
/* if splitting the domain fails, punt */
}
}
}
-
+ return(1);
}
#endif /* def TRUST_FILES */