summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-08-31 20:32:39 +0200
committerGravatar waker <wakeroid@gmail.com>2011-08-31 20:32:39 +0200
commitfecc68fb7ac36ed234f6e61605292190c690b713 (patch)
tree5ee12f70e472f3f6d7688c79d25fca8c27c21732
parenta41c9b404580c204575b83884634e7e6ea7f98f9 (diff)
lastfm: cut multiline fields before submission
-rw-r--r--plugins/lastfm/lastfm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/lastfm/lastfm.c b/plugins/lastfm/lastfm.c
index 14361445..17bc5a6b 100644
--- a/plugins/lastfm/lastfm.c
+++ b/plugins/lastfm/lastfm.c
@@ -347,7 +347,7 @@ static int
lfm_uri_encode (char *out, int outl, const char *str) {
int l = outl;
//trace ("lfm_uri_encode %p %d %s\n", out, outl, str);
- while (*str) {
+ while (*str && *((uint8_t*)str) >= 32) {
if (outl <= 1) {
//trace ("no space left for 1 byte in buffer\n");
return -1;