summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/plugins/Last.FM/Lastfm.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/plugins/Last.FM/Lastfm.patch b/contrib/plugins/Last.FM/Lastfm.patch
index 7b818705..78dac19b 100644
--- a/contrib/plugins/Last.FM/Lastfm.patch
+++ b/contrib/plugins/Last.FM/Lastfm.patch
@@ -41,8 +41,8 @@ diff -Nuar --exclude=.svn trunk/lib/class/audioscrobbler.class.php ampache/lib/c
+ function scrobbler($username, $password) {
+
+ $this->error_msg = '';
-+ $this->username = $username;
-+ $this->password = $password;
++ $this->username = trim($username);
++ $this->password = trim($password);
+ $this->challenge = '';
+ $this->queued_tracks = array();
+
@@ -196,7 +196,7 @@ diff -Nuar --exclude=.svn trunk/lib/class/audioscrobbler.class.php ampache/lib/c
+ return FALSE;
+ }
+ if(substr($response[0], 0, 6) == 'FAILED') {
-+ $this->error_msg = substr($response[6], 7);
++ $this->error_msg = $response[0];
+ return FALSE;
+ }
+ if(substr($response[0], 0, 7) == 'BADAUTH') {