mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-02 06:45:59 +01:00
Always transform 'from' to lower case in FromMatchesFilter
This commit is contained in:
parent
a016910baf
commit
94adaf8e50
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue