From a4b3be935b755f23aebea1ce33d7e3c832cdff98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Proch=C3=A1zka?= Date: Fri, 1 Sep 2017 00:38:56 +0200 Subject: [PATCH] Loader: fixed including of paths with scheme in config loader (#153) --- src/DI/Config/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DI/Config/Loader.php b/src/DI/Config/Loader.php index d18d3516f..9659de74a 100644 --- a/src/DI/Config/Loader.php +++ b/src/DI/Config/Loader.php @@ -56,7 +56,7 @@ public function load($file, $section = null) if (isset($data[self::INCLUDES_KEY])) { Validators::assert($data[self::INCLUDES_KEY], 'list', "section 'includes' in file '$file'"); foreach ($data[self::INCLUDES_KEY] as $include) { - if (!preg_match('#([a-z]:)?[/\\\\]#Ai', $include)) { + if (!preg_match('#([a-z]+:)?[/\\\\]#Ai', $include)) { $include = dirname($file) . '/' . $include; } $merged = Helpers::merge($this->load($include), $merged);