Skip to content

ChainRouter does not handle URLs starting with two slashes properly #166

@sustmi

Description

@sustmi

This issue follows rejected pull requests: #147 and #152
and is still not fixed even after merging: #163 (sorry for not commenting earlier).

If you pass //test as an $url parameter into ChainRouter::match() method and you have RequestMatcherInterface in the chain, it tries to match it as pathinfo / with host test instead of matching as pathinfo //test.

See this failing test: https://github.com/symfony-cmf/Routing/compare/master...sustmi:test-for-matching-double-slash?expand=1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions