o2on svn commit
o2on-****@lists*****
2008年 3月 5日 (水) 19:11:12 JST
Revision: 35 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=35 Author: k-uehara Date: 2008-03-05 19:11:12 +0900 (Wed, 05 Mar 2008) Log Message: ----------- FIX: UPnPのURL処理の不備 http://pc11.2ch.net/test/read.cgi/tech/1180440415/458 より Modified Paths: -------------- trunk/o2on/src.o2on/upnp_description.h Modified: trunk/o2on/src.o2on/upnp_description.h =================================================================== --- trunk/o2on/src.o2on/upnp_description.h 2008-02-28 14:37:50 UTC (rev 34) +++ trunk/o2on/src.o2on/upnp_description.h 2008-03-05 10:11:12 UTC (rev 35) @@ -336,7 +336,7 @@ if (wcsstr(cur_element.c_str(), L"URL")) { if (strncmp(str.c_str(), "http://", 7) != 0) - str = base_url + str; + str = base_url + (str[0] == '/' ? "" : "/") + str; } if (cur_device) {