summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-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;