Trim whitespace from acl topics.

This commit is contained in:
Roger A. Light 2020-01-30 19:55:55 +00:00
parent 70fd600c3a
commit 32969169f7

View File

@ -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;