mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 08:12:05 +01:00
Use toLowerCase(Locale.US) in FromMatchesFilter
This commit is contained in:
parent
4a60a68802
commit
a016910baf
1 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,8 @@
|
||||||
|
|
||||||
package org.jivesoftware.smack.filter;
|
package org.jivesoftware.smack.filter;
|
||||||
|
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
import org.jivesoftware.smack.packet.Packet;
|
import org.jivesoftware.smack.packet.Packet;
|
||||||
import org.jivesoftware.smack.util.StringUtils;
|
import org.jivesoftware.smack.util.StringUtils;
|
||||||
|
|
||||||
|
@ -46,7 +48,7 @@ public class FromMatchesFilter implements PacketFilter {
|
||||||
* @param matchBare
|
* @param matchBare
|
||||||
*/
|
*/
|
||||||
public FromMatchesFilter(String address, boolean matchBare) {
|
public FromMatchesFilter(String address, boolean matchBare) {
|
||||||
this.address = (address == null) ? null : address.toLowerCase();
|
this.address = (address == null) ? null : address.toLowerCase(Locale.US);
|
||||||
matchBareJID = matchBare;
|
matchBareJID = matchBare;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue