If the version length is more than 7 chars. Its not a real version.

This commit is contained in:
libraryaddict 2014-01-08 06:44:36 +13:00
parent 30c2017bb2
commit 7e090bac47

View File

@ -34,6 +34,9 @@ public class UpdateChecker {
con.setRequestMethod("POST");
con.getOutputStream().write(("key=" + key + "&resource=" + resourceId).getBytes("UTF-8"));
version = new BufferedReader(new InputStreamReader(con.getInputStream())).readLine();
if (version.length() > 7) {
version = null;
}
} catch (IOException ex) {
ex.printStackTrace();
}