diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-12-20 11:34:47 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-12-20 11:34:47 +0000 |
commit | 944e8b37e80589aef9de20ea5fedd98bc0900307 (patch) | |
tree | b7ee29d64dd4d4312819ea79c233506a4294a673 /src | |
parent | d4fd1b83a197d73cbac114fe53f3448d8b5c7cc2 (diff) |
ACL: Disallow '/' characters in queue names specified for "queue="
Diffstat (limited to 'src')
-rw-r--r-- | src/src/acl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/src/acl.c b/src/src/acl.c index 477b059a5..b8a4b8865 100644 --- a/src/src/acl.c +++ b/src/src/acl.c @@ -3597,6 +3597,12 @@ for (; cb != NULL; cb = cb->next) #endif case ACLC_QUEUE: + if (Ustrchr(arg, '/')) + { + *log_msgptr = string_sprintf( + "Directory separator not permitted in queue name: '%s'", arg); + return ERROR; + } queue_name = string_copy_malloc(arg); break; |