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). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8790 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
404037c6e4
commit
48d1a3aaab
@ -304,7 +304,7 @@ CURLcode NetworkHttp::init()
|
||||
// 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) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user