]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Parser/TokenParser.php
Fix pack bundle scheme env variable usage
[packbundle] / 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
-                               $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