If the version length is more than 7 chars. Its not a real version.
This commit is contained in:
parent
30c2017bb2
commit
7e090bac47
@ -34,6 +34,9 @@ public class UpdateChecker {
|
|||||||
con.setRequestMethod("POST");
|
con.setRequestMethod("POST");
|
||||||
con.getOutputStream().write(("key=" + key + "&resource=" + resourceId).getBytes("UTF-8"));
|
con.getOutputStream().write(("key=" + key + "&resource=" + resourceId).getBytes("UTF-8"));
|
||||||
version = new BufferedReader(new InputStreamReader(con.getInputStream())).readLine();
|
version = new BufferedReader(new InputStreamReader(con.getInputStream())).readLine();
|
||||||
|
if (version.length() > 7) {
|
||||||
|
version = null;
|
||||||
|
}
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user