merge_slashes is not handled properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-werkzeug (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
lsb_release:
Description: Ubuntu 24.04 LTS
Release: 24.04
When a request has repeated slashes and the merge_slashes parameter is set to False on the Map the slashes are merged and it returns a redirect response instead of a 404 not found.
This bug is know in the upstream: https:/
And is fixed here : https:/
The upstream versions affected are 2.2.0 up to 3.0.1
Fixed in 3.0.2
Here is a small snippet of code to reproduce:
>>> from werkzeug import routing
>>> url_map = routing.
>>> x = url_map.
>>> x.match(
('nowhere', {})
But it should result in a Traceback with
werkzeug.
Thanks