mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-26 12:37:58 +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;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
import org.jivesoftware.smack.packet.Packet;
|
||||
import org.jivesoftware.smack.util.StringUtils;
|
||||
|
||||
|
@ -46,7 +48,7 @@ public class FromMatchesFilter implements PacketFilter {
|
|||
* @param 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue