Skip to content

Commit 05566fb

Browse files
committed
fix: Return Empty String if No Path
1 parent 747b3ad commit 05566fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WebFiori/Http/Uri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function getPath() : string {
163163
$path = $this->uriBroken['path'];
164164

165165
if (count($path) == 0) {
166-
return '/';
166+
return '';
167167
}
168168

169169
return '/'.implode('/', $path);

0 commit comments

Comments
 (0)