From 695658d0e31828eb0c1704ebbe28b0ba435de256 Mon Sep 17 00:00:00 2001 From: CompSciOrBust <54033033+CompSciOrBust@users.noreply.github.com> Date: Thu, 31 Oct 2019 15:43:00 +0000 Subject: [PATCH] Fixed bug in GitAPI data validation --- Makefile | 2 +- source/UpdaterUI.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2cf1089..9b6f459 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ INCLUDES := include #ROMFS := romfs APP_TITLE := Amiigo APP_AUTHOR := CompSciOrBust -APP_VERSION := 1.4.2 +APP_VERSION := 1.4.3 #--------------------------------------------------------------------------------- # options for code generation diff --git a/source/UpdaterUI.cpp b/source/UpdaterUI.cpp index b791e72..b9efd75 100644 --- a/source/UpdaterUI.cpp +++ b/source/UpdaterUI.cpp @@ -132,7 +132,7 @@ bool UpdaterUI::CheckForNewVersion() //Get the release tag string from the data GitAPIData = json::parse(Data); //Check if GitAPI gave us a release tag otherwise we'll crash - if(GitAPIData.count("0") == 0) + if(Data.length() < 300) { //User is probably rate limited. UpdateState = 999;