mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +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) {
|
if (from == null) {
|
||||||
return address == null;
|
return address == null;
|
||||||
}
|
}
|
||||||
|
// Simplest form of NAMEPREP/STRINGPREP
|
||||||
|
from = from.toLowerCase(Locale.US);
|
||||||
if (matchBareJID) {
|
if (matchBareJID) {
|
||||||
from = StringUtils.parseBareAddress(from).toLowerCase();
|
from = StringUtils.parseBareAddress(from);
|
||||||
}
|
}
|
||||||
return from.equals(address);
|
return from.equals(address);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue