Don't verify part of the UPnP root descript that apparently isn't standard.
This commit is contained in:
parent
7bb623eb43
commit
a1983664f2
|
@ -1014,9 +1014,7 @@ parseRoot(const char *buf, int len, char ** soap, char ** scpd )
|
||||||
kk = tr_xmlFindTag( kk, end, "service" );
|
kk = tr_xmlFindTag( kk, end, "service" );
|
||||||
buf = tr_xmlTagContents( kk, end );
|
buf = tr_xmlTagContents( kk, end );
|
||||||
if( !tr_xmlFindTagVerifyContents( buf, end, "serviceType",
|
if( !tr_xmlFindTagVerifyContents( buf, end, "serviceType",
|
||||||
UPNP_SERVICE_TYPE, 1 ) &&
|
UPNP_SERVICE_TYPE, 1 ) )
|
||||||
!tr_xmlFindTagVerifyContents( buf, end, "serviceId",
|
|
||||||
"urn:upnp-org:serviceId:WANIPConn1", 1 ) )
|
|
||||||
{
|
{
|
||||||
*soap = tr_xmlDupTagContents( buf, end, "controlURL");
|
*soap = tr_xmlDupTagContents( buf, end, "controlURL");
|
||||||
*scpd = tr_xmlDupTagContents( buf, end, "SCPDURL");
|
*scpd = tr_xmlDupTagContents( buf, end, "SCPDURL");
|
||||||
|
|
Loading…
Reference in New Issue