From f076f368bdb868353cbdaa60b54fbbcef3e5c942 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sun, 13 Dec 2015 00:24:05 +0100 Subject: [PATCH] fix DeviceProtection#GetSupportedProtocols response add CDATA to escape XML document in response : ProtocolList content is an XML document that should be escaped See section 2.4.3.1 of the DeviceProtection spec http://upnp.org/specs/gw/UPnP-gw-DeviceProtection-v1-Service.pdf see PR #178 --- miniupnpd/upnpsoap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniupnpd/upnpsoap.c b/miniupnpd/upnpsoap.c index ed2a007..6bb375c 100644 --- a/miniupnpd/upnpsoap.c +++ b/miniupnpd/upnpsoap.c @@ -2030,7 +2030,7 @@ GetSupportedProtocols(struct upnphttp * h, const char * action, const char * ns) static const char resp[] = "" - "%s" + "" ""; char body[1024]; int bodylen;