aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-06-17 16:28:07 -0600
committerdaneren2005 <daneren2005@gmail.com>2013-06-17 16:28:07 -0600
commitb23a47f7eeda549a1898571bef61026e4003e04d (patch)
tree0d3a571daa8af428ab02bb04150d2d2c7db62932 /subsonic-android/src/github
parentef721fa41dec064cc562c6ecf028faa81d78a3d2 (diff)
downloaddsub-b23a47f7eeda549a1898571bef61026e4003e04d.tar.gz
dsub-b23a47f7eeda549a1898571bef61026e4003e04d.tar.bz2
dsub-b23a47f7eeda549a1898571bef61026e4003e04d.zip
Strip out username/password from logging
Diffstat (limited to 'subsonic-android/src/github')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java
index 513ce16a..8beacfcb 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java
@@ -982,7 +982,8 @@ public class RESTMusicService implements MusicService {
private HttpResponse executeWithRetry(Context context, String url, String originalUrl, HttpParams requestParams,
List<String> parameterNames, List<Object> parameterValues,
List<Header> headers, ProgressListener progressListener, CancellableTask task) throws IOException {
- Log.i(TAG, "Using URL " + url);
+ // Strip out sensitive information from log
+ Log.i(TAG, "Using URL " + url.substring(0, url.indexOf("&u")) + url.substring(url.indexOf("&v")));
SharedPreferences prefs = Util.getPreferences(context);
int networkTimeout = Integer.parseInt(prefs.getString(Constants.PREFERENCES_KEY_NETWORK_TIMEOUT, "15000"));