Don't verify part of the UPnP root descript that apparently isn't standard.

This commit is contained in:
Josh Elsasser 2006-09-28 00:17:56 +00:00
parent 7bb623eb43
commit a1983664f2
1 changed files with 1 additions and 3 deletions

View File

@ -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");