1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-17 17:04:49 +02:00

Always transform 'from' to lower case in FromMatchesFilter

This commit is contained in:
Florian Schmaus 2014-04-03 14:36:08 +02:00
parent a016910baf
commit 94adaf8e50

View file

@ -93,8 +93,10 @@ public class FromMatchesFilter implements PacketFilter {
if (from == null) {
return address == null;
}
// Simplest form of NAMEPREP/STRINGPREP
from = from.toLowerCase(Locale.US);
if (matchBareJID) {
from = StringUtils.parseBareAddress(from).toLowerCase();
from = StringUtils.parseBareAddress(from);
}
return from.equals(address);
}