Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
URLEncoder.encode
Browse files Browse the repository at this point in the history
  • Loading branch information
GuhDoy committed May 10, 2023
1 parent 99b10a5 commit 91f0b97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ android {
minSdk 24
targetSdk sdk
versionCode gitCommitCount
versionName '2.8.4'
versionName '2.8.5'

testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
externalNativeBuild {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.json.JSONObject;

import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
Expand Down Expand Up @@ -114,7 +113,7 @@ private void runSign() {
final Iterator<String> iterator = mFollow.iterator();
while (iterator.hasNext()) {
final String s = iterator.next();
final String body = "kw=" + URLEncoder.encode(s, StandardCharsets.UTF_8) + "&tbs=" + mTbs + "&sign=" +
final String body = "kw=" + URLEncoder.encode(s, "UTF-8") + "&tbs=" + mTbs + "&sign=" +
AutoSignHelper.enCodeMd5("kw=" + s + "tbs=" + mTbs + "tiebaclient!!!");
final JSONObject post = AutoSignHelper.post(SIGN_URL, body);
if ("0".equals(post.getString("error_code"))) {
Expand Down

0 comments on commit 91f0b97

Please sign in to comment.