Skip to content

Commit

Permalink
fix: Use the default locale when converting case
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam committed Sep 29, 2023
1 parent a09862e commit a8e72e3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ private synchronized void handleIntents() {

if (urlString != null) {

if (urlString.toLowerCase().startsWith("bridge://")) {
var loc = new Locale.Builder().setLanguage(Prefs.getDefaultLocale()).build();
if (urlString.toLowerCase(loc).startsWith("bridge://")) {
String newBridgeValue = urlString.substring(9); //remove the bridge protocol piece
newBridgeValue = URLDecoder.decode(newBridgeValue); //decode the value here

Expand Down

0 comments on commit a8e72e3

Please sign in to comment.