diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2005-09-26 20:33:47 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2005-09-26 20:33:47 +0000 |
commit | fa74739dccc3a2ba603afebf499f2d59d03ef249 (patch) | |
tree | 03ddf3eea445fad4ed315b9dd0d9261709d28291 | |
parent | db97ab228dea9088e6597dec30196fb891464656 (diff) |
disallow "
-rw-r--r-- | extensions/ebt_log.c | 2 |
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; |