1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-12-23 05:16:58 +00:00
This commit is contained in:
Austin Huang 2020-12-27 22:36:36 -05:00
parent 82885102d9
commit f3d6566332
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -161,7 +161,7 @@ public class DirectThreadBroadcaster extends AsyncTask<DirectThreadBroadcaster.B
public TextBroadcastOptions(String text) throws UnsupportedEncodingException {
super(ItemType.TEXT);
this.text = URLEncoder.encode(text, "UTF-8")
.replaceAll("\\+", "%20").replaceAll("%21", "!").replaceAll("%27", "'")
.replaceAll("\\+", "%20").replaceAll("%21", "!").replaceAll("%27", "'").replaceAll("%22", "\\\"")
.replaceAll("%28", "(").replaceAll("%29", ")").replaceAll("%7E", "~").replaceAll("%0A", "\n");
}
@ -234,8 +234,8 @@ public class DirectThreadBroadcaster extends AsyncTask<DirectThreadBroadcaster.B
}
public static class DirectThreadBroadcastResponse {
private int responseCode;
private JSONObject response;
private final int responseCode;
private final JSONObject response;
public DirectThreadBroadcastResponse(int responseCode, JSONObject response) {
this.responseCode = responseCode;