diff options
author | Justin Maggard <jmaggard@users.sourceforce.net> | 2012-02-06 00:21:48 +0400 |
---|---|---|
committer | Justin Maggard <jmaggard@users.sourceforce.net> | 2012-02-06 00:21:48 +0400 |
commit | 6223fb04a7a05097cf5198c367a0a58bd4e2b5a7 (patch) | |
tree | 98b8b282174d06342470758644d8548de35cee33 | |
parent | e135ca88a7f64a3765e6489ac6bd10f1d78d92f8 (diff) |
* Handle an empty DeviceID from Zyxel media player SOAP request.
-rw-r--r-- | upnpsoap.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, "<DeviceID>"); if(id) { bodylen = snprintf(body, sizeof(body), resp, |