Skip to content

Commit 4941f09

Browse files
Merge pull request #19 from CodeWithKyrian/18-problem-with-autoconfigphp
bugfix: https slashes affected when joining paths
2 parents d29cd6e + c7ef926 commit 4941f09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Utils/Helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function joinPaths(string ...$args): string
8181
}
8282
}
8383

84-
return preg_replace('#/+#', '/', implode(DIRECTORY_SEPARATOR, $paths));
84+
return preg_replace('#(?<!:)//+#', '/', implode(DIRECTORY_SEPARATOR, $paths));
8585
}
8686

8787
function ensureDirectory($filePath): void

0 commit comments

Comments
 (0)