1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01: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);
}