From 0fa9f57971391d0c24c3585d8bf8fcdafa2731a9 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Wed, 21 Aug 2024 11:53:38 +0100 Subject: [PATCH] Improvements to upgrade.php script to improve Windows experience --- upgrade.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/upgrade.php b/upgrade.php index d08f7439e3..4d67d24f22 100644 --- a/upgrade.php +++ b/upgrade.php @@ -1,9 +1,14 @@ $line) { if ((strlen($line) > 1) && (strpos($line, "#") !== 0)) { - list ($env_key, $env_value) = $env_line = explode('=', $line); + $env_line = explode('=', $line, 2); + if (count($env_line) != 2) { + continue; + } + list ($env_key, $env_value) = $env_line; // The array starts at 0 $show_line_num = $line_num+1;