From 998cf52364a790b63c30a6ff8c7cfd3ccb0f2e20 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 17 Mar 2025 20:34:05 +0300 Subject: [PATCH] Update updater.php --- updater.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/updater.php b/updater.php index 1a225d1bc..c3d2eed5f 100644 --- a/updater.php +++ b/updater.php @@ -54,6 +54,10 @@ if (\z4kn4fein\SemVer\Version::equal($latestVersion, $currentVersion)) { if (\z4kn4fein\SemVer\Version::greaterThan($latestVersion, $previousVersion) && \z4kn4fein\SemVer\Version::lessThanOrEqual($version, $latestVersion)) { $dump_path = ''; // todo... + if (!is_file($dump_path) || !is_readable($dump_path)) { + bb_die(''); // todo... + } + $temp_line = ''; foreach (file($dump_path) as $line) { if (str_starts_with($line, '--') || $line == '') {