mirror of
https://github.com/owntone/owntone-server.git
synced 2025-12-05 23:33:13 -05:00
Fix crash after special (malformed?) TunesRemote SE daap request
Request has comma before &query:
/databases/1/containers/1/items?session-id=100&meta=dmap.itemname,[...],daap.songcompilation,&query=('com.apple...
This commit is contained in:
@@ -585,7 +585,7 @@ parse_meta(struct evhttp_request *req, char *tag, const char *param, const struc
|
||||
|
||||
nmeta = 1;
|
||||
ptr = metastr;
|
||||
while ((ptr = strchr(ptr + 1, ',')))
|
||||
while ((ptr = strchr(ptr + 1, ',')) && (strlen(ptr) > 1))
|
||||
nmeta++;
|
||||
|
||||
DPRINTF(E_DBG, L_DAAP, "Asking for %d meta tags\n", nmeta);
|
||||
|
||||
Reference in New Issue
Block a user