Skip to content

Commit 713f6c1

Browse files
committed
fixed url parsing in windows
1 parent 9f61667 commit 713f6c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ private function setPath($path)
485485
$this->info['path'] = [];
486486

487487
if (isset($parts['dirname'])) {
488-
foreach (explode(DIRECTORY_SEPARATOR, $parts['dirname']) as $dir) {
488+
foreach (explode('/', str_replace(DIRECTORY_SEPARATOR, '/', $parts['dirname'])) as $dir) {
489489
if ($dir !== '') {
490490
$this->info['path'][] = $dir;
491491
}

0 commit comments

Comments
 (0)