From: <hik...@us...> - 2011-05-31 11:32:18
|
Revision: 8790 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=8790&view=rev Author: hikerstk Date: 2011-05-31 11:32:12 +0000 (Tue, 31 May 2011) Log Message: ----------- Only accept news.xml if vesion==1 - to avoid problems if we should change the format (though a new xml format would require a new addons directory anyway to avoid problems with existing installed addons). Modified Paths: -------------- main/trunk/src/addons/network_http.cpp Modified: main/trunk/src/addons/network_http.cpp =================================================================== --- main/trunk/src/addons/network_http.cpp 2011-05-31 07:20:20 UTC (rev 8789) +++ main/trunk/src/addons/network_http.cpp 2011-05-31 11:32:12 UTC (rev 8790) @@ -304,7 +304,7 @@ // it's an invalid download. Try downloading again after // resetting the news server back to the default. int version=-1; - if( !xml->get("version", &version) || version<1 || + if( !xml->get("version", &version) || version!=1 || !xml->get("mtime", &version) || !xml->get("frequency", &version) ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |