benningm / Mail-SpamAssassin-Plugin-RedisAWL

redis support for spamassassin AWL/TxRep
1 stars 1 forks source link

Wrong pattern in remove_entry may delete wrong records #5

Closed benningm closed 5 years ago

benningm commented 5 years ago

The pattern

 my @keys = $self->{'redis'}->keys($self->{'prefix'}.$mailaddr.'*');

Just appends a '*' to the mail address. When called with 'test@example.de' it will catch both 'example.de' or 'example.de.com'.

Correct patter should be '|ip=*'.