Skip to content

Commit

Permalink
Route: removed test for double //
Browse files Browse the repository at this point in the history
(btw fixes nette/application#154 regression)
  • Loading branch information
dg committed Feb 13, 2019
1 parent 6e90be9 commit 603c697
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/Routing/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,6 @@ public function constructUrl(array $params, Nette\Http\UrlScript $refUrl): ?stri
]);
}

if (strpos($url, '//', 2) !== false) {
return null;
}

$url = $scheme . ':' . $url;

// build query string
Expand Down
2 changes: 1 addition & 1 deletion tests/Route/optional.preferred.nested1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ testRouteIn($route, '/name', [
'page' => null,
'lang' => null,
'test' => 'testvalue',
], null);
], '//name?test=testvalue');

0 comments on commit 603c697

Please sign in to comment.