Trim whitespace from acl topics.

pull/1586/head
Roger A. Light 6 years ago
parent 70fd600c3a
commit 32969169f7

@ -485,11 +485,7 @@ static int aclfile__parse(struct mosquitto_db *db, struct mosquitto__security_op
} }
token = strtok_r(NULL, "", &saveptr); token = strtok_r(NULL, "", &saveptr);
if(token){ if(token){
topic = token; topic = util__trimblanks(token);
/* Ignore duplicate spaces */
while(topic[0] == ' '){
topic++;
}
}else{ }else{
topic = access_s; topic = access_s;
access_s = NULL; access_s = NULL;

Loading…
Cancel
Save