From 77d6b1cb7c57502746aa4431905bac4063c8b8fb Mon Sep 17 00:00:00 2001 From: Henry Gross-Hellsen <6283258+cowpod@users.noreply.github.com> Date: Wed, 13 Nov 2024 01:33:46 -0800 Subject: [PATCH] interval_range_utils.php: handle a malformed interval notation --- functions/interval_range_utils.php | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/interval_range_utils.php b/functions/interval_range_utils.php index bec1172..37804ec 100644 --- a/functions/interval_range_utils.php +++ b/functions/interval_range_utils.php @@ -138,6 +138,7 @@ function parse_interval_range($mcversion) { } // we assume it's a number else { + $mcversion=trim(trim(trim(trim($mcversion,'['),']'),'['),']'); // [1.20.1] $min=$mcversion; $exp=explode('.',$mcversion); error_log($exp[sizeof($exp)-1]);