From 32969169f71b944da540098e884f3b5c46b2cacb Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 30 Jan 2020 19:55:55 +0000 Subject: [PATCH] Trim whitespace from acl topics. --- src/security_default.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/security_default.c b/src/security_default.c index 58b2158e..91232ec5 100644 --- a/src/security_default.c +++ b/src/security_default.c @@ -485,11 +485,7 @@ static int aclfile__parse(struct mosquitto_db *db, struct mosquitto__security_op } token = strtok_r(NULL, "", &saveptr); if(token){ - topic = token; - /* Ignore duplicate spaces */ - while(topic[0] == ' '){ - topic++; - } + topic = util__trimblanks(token); }else{ topic = access_s; access_s = NULL;