From: Raphaƫl Gertz Date: Fri, 8 Mar 2024 01:09:04 +0000 (+0100) Subject: Fix pack bundle scheme env variable usage X-Git-Tag: 0.4.0~4 X-Git-Url: https://git.rapsys.eu/packbundle/commitdiff_plain/fc8fb1449c29f4bc6056ed7d63b1fe904cf59051?ds=sidebyside Fix pack bundle scheme env variable usage --- diff --git a/Parser/TokenParser.php b/Parser/TokenParser.php index 7c3ad41..0ca3e30 100644 --- a/Parser/TokenParser.php +++ b/Parser/TokenParser.php @@ -143,7 +143,7 @@ class TokenParser extends AbstractTokenParser { //Deal with generic url if (strpos($inputs[$k], '//') === 0) { //Fix url - $inputs[$k] = ($_ENV['RAPSYSPACK_SCHEME'] ?? 'https://').substr($inputs[$k], 2); + $inputs[$k] = ($_ENV['RAPSYSPACK_SCHEME'] ?? 'https').'://'.substr($inputs[$k], 2); //Deal with non url path } elseif (strpos($inputs[$k], '://') === false) { //Check if we have a bundle path