aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-01-23 17:20:17 -0800
committerScott Jackson <daneren2005@gmail.com>2015-01-23 17:20:17 -0800
commit85846d4c01d30e9600e60308eda62f71f470afeb (patch)
tree9edbbebfff3a921f501ebb4023d1cbdb4d8e7442
parent38f386015e8a3cd8f2396cf3af24b1b7b1827645 (diff)
downloaddsub-85846d4c01d30e9600e60308eda62f71f470afeb.tar.gz
dsub-85846d4c01d30e9600e60308eda62f71f470afeb.tar.bz2
dsub-85846d4c01d30e9600e60308eda62f71f470afeb.zip
Fix bad html encoding when ' is part of query
-rw-r--r--src/github/daneren2005/dsub/service/RESTMusicService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/RESTMusicService.java b/src/github/daneren2005/dsub/service/RESTMusicService.java
index cd0ae376..f0144ee4 100644
--- a/src/github/daneren2005/dsub/service/RESTMusicService.java
+++ b/src/github/daneren2005/dsub/service/RESTMusicService.java
@@ -65,6 +65,7 @@ import android.graphics.Bitmap;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Looper;
+import android.support.v4.text.TextUtilsCompat;
import android.util.Log;
import github.daneren2005.dsub.R;
import github.daneren2005.dsub.domain.*;
@@ -1601,7 +1602,7 @@ public class RESTMusicService implements MusicService {
StringBuilder builder = new StringBuilder(url);
for (int i = 0; i < parameterNames.size(); i++) {
builder.append("&").append(parameterNames.get(i)).append("=");
- builder.append(URLEncoder.encode(String.valueOf(parameterValues.get(i)), "UTF-8"));
+ builder.append(TextUtilsCompat.htmlEncode(String.valueOf(parameterValues.get(i))));
}
url = builder.toString();
parameterNames = null;