Added support for conditionally using case sensitive filtering files.

Code changes from James E. Flemer.
This commit is contained in:
Robert James Kaes committed 2003-01-27 17:57:45 +00:00
1 parent 1624979f13
commit cb7e3eef04
5 files changed
+23 -5

No files matched your search

+10 -1
View File
@@ -1,4 +1,4 @@
/* $Id: grammar.y,v 1.17 2002-11-26 21:44:43 rjkaes Exp $
/* $Id: grammar.y,v 1.18 2003-01-27 17:57:39 rjkaes Exp $
*
* This is the grammar for tinyproxy's configuration file. It needs to be
* in sync with scanner.l. If you know more about yacc and lex than I do
@@ -48,6 +48,7 @@ int yylex(void);
%token KW_USER KW_GROUP
%token KW_ANONYMOUS KW_XTINYPROXY
%token KW_FILTER KW_FILTERURLS KW_FILTEREXTENDED KW_FILTER_DEFAULT_DENY
%token KW_FILTER_CASESENSITIVE
%token KW_UPSTREAM
%token KW_CONNECTPORT KW_BIND KW_HTTP_VIA
%token KW_ALLOW KW_DENY
@@ -133,6 +134,14 @@ statement
config.filter_extended = $2;
#else
log_message(LOG_WARNING, "Filter support was not compiled in.");
#endif
}
| KW_FILTER_CASESENSITIVE yesno
{
#ifdef FILTER_ENABLE
config.filter_casesensitive = $2;
#else
log_message(LOG_WARNING, "Filter support was not compiled in.");
#endif
}
| KW_FILTER_DEFAULT_DENY yesno