From 6223fb04a7a05097cf5198c367a0a58bd4e2b5a7 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Sun, 5 Feb 2012 20:21:48 +0000 Subject: * Handle an empty DeviceID from Zyxel media player SOAP request. --- upnpsoap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upnpsoap.c b/upnpsoap.c index a297f31..ae90d2d 100644 --- a/upnpsoap.c +++ b/upnpsoap.c @@ -134,6 +134,8 @@ IsAuthorizedValidated(struct upnphttp * h, const char * action) ParseNameValue(h->req_buf + h->req_contentoff, h->req_contentlen, &data); id = GetValueFromNameValueList(&data, "DeviceID"); + if (!id) + id = strstr(h->req_buf + h->req_contentoff, ""); if(id) { bodylen = snprintf(body, sizeof(body), resp, -- cgit v1.2.3