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
1 changed files with 3 additions and 1 deletions

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);
}