From 7e090bac47866ed804909c0f06248244fc818b5e Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 8 Jan 2014 06:44:36 +1300 Subject: [PATCH] If the version length is more than 7 chars. Its not a real version. --- src/me/libraryaddict/disguise/utilities/UpdateChecker.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/me/libraryaddict/disguise/utilities/UpdateChecker.java b/src/me/libraryaddict/disguise/utilities/UpdateChecker.java index 4fbf811f..b32b452b 100644 --- a/src/me/libraryaddict/disguise/utilities/UpdateChecker.java +++ b/src/me/libraryaddict/disguise/utilities/UpdateChecker.java @@ -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(); }