Skip to content

Commit 7ace01e

Browse files
authored
Merge pull request dropbox#116 from yukuku/patch-1
Encode userLocale before opening auth webpage
2 parents 80d1c78 + d5a4e1e commit 7ace01e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/dropbox/core/DbxRequestUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private static String encodeUrlParams(/*@Nullable*/String userLocale,
7575
StringBuilder buf = new StringBuilder();
7676
String sep = "";
7777
if (userLocale != null) {
78-
buf.append("locale=").append(userLocale);
78+
buf.append("locale=").append(encodeUrlParam(userLocale));
7979
sep = "&";
8080
}
8181

0 commit comments

Comments
 (0)