]> Raphaël G. Git Repositories - packbundle/commitdiff
Fix pack bundle scheme env variable usage
authorRaphaël Gertz <git@rapsys.eu>
Fri, 8 Mar 2024 01:09:04 +0000 (02:09 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Fri, 8 Mar 2024 01:09:04 +0000 (02:09 +0100)
Parser/TokenParser.php

index 7c3ad41f9ae3f4c4a6bc809ef7441d879269180a..0ca3e309dc3cbe3b996073900ca0845d3baebc53 100644 (file)
@@ -143,7 +143,7 @@ class TokenParser extends AbstractTokenParser {
                        //Deal with generic url
                        if (strpos($inputs[$k], '//') === 0) {
                                //Fix url
                        //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
                        //Deal with non url path
                        } elseif (strpos($inputs[$k], '://') === false) {
                                //Check if we have a bundle path