diff options
author | waker <wakeroid@gmail.com> | 2011-08-31 20:32:39 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-08-31 20:32:39 +0200 |
commit | fecc68fb7ac36ed234f6e61605292190c690b713 (patch) | |
tree | 5ee12f70e472f3f6d7688c79d25fca8c27c21732 /plugins/lastfm | |
parent | a41c9b404580c204575b83884634e7e6ea7f98f9 (diff) |
lastfm: cut multiline fields before submission
Diffstat (limited to 'plugins/lastfm')
-rw-r--r-- | plugins/lastfm/lastfm.c | 2 |
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; |