summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2005-09-26 20:33:47 +0000
committerBart De Schuymer <bdschuym@pandora.be>2005-09-26 20:33:47 +0000
commitfa74739dccc3a2ba603afebf499f2d59d03ef249 (patch)
tree03ddf3eea445fad4ed315b9dd0d9261709d28291
parentdb97ab228dea9088e6597dec30196fb891464656 (diff)
disallow "
-rw-r--r--extensions/ebt_log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/ebt_log.c b/extensions/ebt_log.c
index 07a5fe9..7429479 100644
--- a/extensions/ebt_log.c
+++ b/extensions/ebt_log.c
@@ -116,6 +116,8 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry,
ebt_print_error2("Unexpected `!' after --log-prefix");
if (strlen(optarg) > sizeof(loginfo->prefix) - 1)
ebt_print_error2("Prefix too long");
+ if (strchr(optarg, '\"'))
+ ebt_print_error2("Use of \\\" is not allowed in the prefix");
strcpy(loginfo->prefix, optarg);
break;