From a016910baf426f89785908a399741012b7dd44be Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 3 Apr 2014 14:35:10 +0200 Subject: [PATCH] Use toLowerCase(Locale.US) in FromMatchesFilter --- .../java/org/jivesoftware/smack/filter/FromMatchesFilter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/jivesoftware/smack/filter/FromMatchesFilter.java b/core/src/main/java/org/jivesoftware/smack/filter/FromMatchesFilter.java index 1101243f7..bc470ee84 100644 --- a/core/src/main/java/org/jivesoftware/smack/filter/FromMatchesFilter.java +++ b/core/src/main/java/org/jivesoftware/smack/filter/FromMatchesFilter.java @@ -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; }