From 5d316ea26aab0d8eea64e9799852b9da9876c973 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 4 Mar 2023 07:18:20 +0100 Subject: [PATCH] Fix https://github.com/firefly-iii/firefly-iii/issues/7112 --- app/Services/FireflyIIIOrg/Update/UpdateRequest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Services/FireflyIIIOrg/Update/UpdateRequest.php b/app/Services/FireflyIIIOrg/Update/UpdateRequest.php index b7927f7ca0..58615fb06b 100644 --- a/app/Services/FireflyIIIOrg/Update/UpdateRequest.php +++ b/app/Services/FireflyIIIOrg/Update/UpdateRequest.php @@ -147,6 +147,12 @@ class UpdateRequest implements UpdateRequestInterface ]; $current = config('firefly.version'); $latest = $information['version']; + + // strip the 'v' from the version if it's there. + if (str_starts_with($latest, 'v')) { + $latest = substr($latest, 1); + } + $compare = version_compare($latest, $current); Log::debug(sprintf('Current version is "%s", latest is "%s", result is: %d', $current, $latest, $compare));