Please sign in to comment.
merged branch Tobion/path-slash (PR #5683)
This PR was merged into the 2.1 branch. Commits ------- 1566f9f [Routing] fix handling of whitespace and synch between collection prefix and route pattern 90145d2 [Routing] fix handling of two starting slashes in the pattern Discussion ---------- [Routing] fix handling of slashes and whitespace in pattern/prefix BC break: no feature addition: no The first commit fixes the handling of two starting slashes in the pattern. It would be confused with a network path e.g. `//domain/path` when generating a path, so should be prevented. The second commit fixes the handling of whitespace in RouteCollection::addPrefix. It wasn't trimmed there but it is trimmed in Route::setPattern. So it can be out-of-synch between RouteCollection::getPrefix <-> Route::getPattern.
- Loading branch information...
Showing with 36 additions and 21 deletions.