Skip to content

Commit 1438311

Browse files
committed
Merge pull request #74 from RJacksonm1/master
Fix #73 - Erroneous backslash slipping into 'path' on Windows
2 parents 60bf48b + 51e70c0 commit 1438311

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('/', $parts['dirname']) as $dir) {
488+
foreach (explode(DIRECTORY_SEPARATOR, $parts['dirname']) as $dir) {
489489
if ($dir !== '') {
490490
$this->info['path'][] = $dir;
491491
}

0 commit comments

Comments
 (0)