summaryrefslogtreecommitdiffhomepage
path: root/src/grammar.y
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2003-01-27 17:57:45 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2003-01-27 17:57:45 +0000
commitcb7e3eef04f7069edaa248bcb35d6b86b8266df8 (patch)
tree917be68d8a67866cadbb715ee14a12c4cfad2d57 /src/grammar.y
parent1624979f13c5ff94f5e693bb44f56a3221c0e7fe (diff)
Added support for conditionally using case sensitive filtering files.
Code changes from James E. Flemer.
Diffstat (limited to 'src/grammar.y')
-rw-r--r--src/grammar.y11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/grammar.y b/src/grammar.y
index 4131dd3..0f52161 100644
--- a/src/grammar.y
+++ b/src/grammar.y
@@ -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
@@ -135,6 +136,14 @@ statement
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
{
#ifdef FILTER_ENABLE