upnpsoap: fix incorrectly formed Samsung GetFeatureList reply

Bug raised here https://sourceforge.net/p/minidlna/bugs/210/, and also
mentioned in http://sourceforge.net/p/minidlna/discussion/879956/thread/34276163/.
However patch given needs to correctly escaped to work otherwise the
renderer will get stuck in an endless loop.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
Spencer Oliver 2014-01-05 13:29:46 +00:00 committed by Justin Maggard
parent f26a9217e4
commit fc6b47fe6a

View File

@ -1786,6 +1786,7 @@ SamsungGetFeatureList(struct upnphttp * h, const char * action)
"&lt;container id=\"2\" type=\"object.item.videoItem\"/&gt;"
"&lt;container id=\"3\" type=\"object.item.imageItem\"/&gt;"
"&lt;/Feature&gt;"
"&lt;/Features&gt;"
"</FeatureList></u:X_GetFeatureListResponse>";
BuildSendAndCloseSoapResp(h, resp, sizeof(resp)-1);