From fa74739dccc3a2ba603afebf499f2d59d03ef249 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Mon, 26 Sep 2005 20:33:47 +0000 Subject: disallow " --- extensions/ebt_log.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3