From bb2580c03184f626de80375c62b814f42067e33b Mon Sep 17 00:00:00 2001 From: mattpass Date: Sun, 22 Nov 2020 16:52:15 +0000 Subject: [PATCH] Don't floatval matches 0 and remove v from zip name --- index.php | 2 +- lib/updater.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index d5e566a..3c2fe5c 100644 --- a/index.php +++ b/index.php @@ -15,7 +15,7 @@ if (true === $ICEcoder["checkUpdates"]) { } $icvInfo = str_replace("\n", "", $icvData); $icv = preg_match("/^[0-9.]+/", $icvInfo, $matches); - $icv = floatval($matches[0]); + $icv = $matches[0]; $icvInfo = [ 0 => $icv, 1 => substr($icvInfo, strlen($matches[0])) diff --git a/lib/updater.php b/lib/updater.php index 1f04b62..3b1e3d5 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -85,7 +85,7 @@ function openZipNew($icvInfo) { $source = 'ICEcoder '.$icvInfo; $target = '../'; - $remoteFile = 'https://icecoder.net/ICEcoder-v'.(str_replace(" beta", "-beta",$icvInfo)).'.zip'; + $remoteFile = 'https://icecoder.net/ICEcoder-'.(str_replace(" beta", "-beta",$icvInfo)).'.zip'; $file = "../tmp/new-version.zip"; $fileData = getData($remoteFile,'curl','Sorry, couldn\'t get latest version zip file.'); echo 'Storing zip file...
';