1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

Whoops, read UPnP root urlbase correctly.

This commit is contained in:
Josh Elsasser 2006-12-27 03:45:51 +00:00
parent 0b3e32ede3
commit 82ead7c85b

View file

@ -981,6 +981,7 @@ parseRoot(const char *buf, int len, char ** soap, char ** scpd )
buf = tr_xmlFindTagContents( buf, end, "root" ); buf = tr_xmlFindTagContents( buf, end, "root" );
urlbase = tr_xmlFindTag( buf, end, "urlBase" ); urlbase = tr_xmlFindTag( buf, end, "urlBase" );
urlbase = tr_xmlTagContents( urlbase, end );
buf = tr_xmlFindTagContents( buf, end, "device" ); buf = tr_xmlFindTagContents( buf, end, "device" );
if( tr_xmlFindTagVerifyContents( buf, end, "deviceType", if( tr_xmlFindTagVerifyContents( buf, end, "deviceType",
"urn:schemas-upnp-org:device:InternetGatewayDevice:1", 1 ) ) "urn:schemas-upnp-org:device:InternetGatewayDevice:1", 1 ) )