Skip to content

Commit

Permalink
Fix issue with /0 as a path.
Browse files Browse the repository at this point in the history
Type juggling resulted in the `'0'` being eaten and not set as the path.
  • Loading branch information
markstory committed Nov 1, 2017
1 parent 2a43409 commit 0fd5153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/ServerRequest.php
Expand Up @@ -311,7 +311,7 @@ protected function _setConfig($config)
if (strpos($config['url'], '?') !== false) {
list($config['url'], $querystr) = explode('?', $config['url']);
}
if ($config['url']) {
if (strlen($config['url'])) {
$uri = $uri->withPath('/' . $config['url']);
}
if (strlen($querystr)) {
Expand Down

0 comments on commit 0fd5153

Please sign in to comment.