Skip to content

Commit c7ef926

Browse files
bugfix: https slashes affected when joining paths
1 parent d29cd6e commit c7ef926

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)