aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-01-28 20:33:20 -0800
committerScott Jackson <daneren2005@gmail.com>2015-01-28 20:33:20 -0800
commit528bf6223a4e3b96e5992cfa14bae3d560896ed9 (patch)
treec683cb9e1fb55e1a14f4e5a63fa2992c8d479f71
parentfb19d0cc5a1191c005eccc36e5c075da5c4384b6 (diff)
downloaddsub-528bf6223a4e3b96e5992cfa14bae3d560896ed9.tar.gz
dsub-528bf6223a4e3b96e5992cfa14bae3d560896ed9.tar.bz2
dsub-528bf6223a4e3b96e5992cfa14bae3d560896ed9.zip
Revert 85846d4c01d30e9600e60308eda62f71f470afeb: Fix bad html encoding when ' is part of query
-rw-r--r--src/github/daneren2005/dsub/service/RESTMusicService.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/RESTMusicService.java b/src/github/daneren2005/dsub/service/RESTMusicService.java
index 00910f70..b41e11ec 100644
--- a/src/github/daneren2005/dsub/service/RESTMusicService.java
+++ b/src/github/daneren2005/dsub/service/RESTMusicService.java
@@ -65,7 +65,6 @@ 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.*;
@@ -1614,7 +1613,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(TextUtilsCompat.htmlEncode(String.valueOf(parameterValues.get(i))));
+ builder.append(URLEncoder.encode(String.valueOf(parameterValues.get(i)), "UTF-8"));
}
url = builder.toString();
parameterNames = null;