mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Move open redirect fix to asgi_send_redirect, refs #2429
See https://github.com/simonw/datasette/pull/2500#issuecomment-3488632278
This commit is contained in:
parent
c1dd2c1dfb
commit
0403a04da6
3 changed files with 7 additions and 7 deletions
|
|
@ -100,6 +100,7 @@ def test_custom_route_pattern_404(custom_pages_client):
|
|||
|
||||
|
||||
def test_custom_route_pattern_with_slash_slash_302(custom_pages_client):
|
||||
response = custom_pages_client.get("//nastyOpenRedirect/")
|
||||
# https://github.com/simonw/datasette/issues/2429
|
||||
response = custom_pages_client.get("//example.com/")
|
||||
assert response.status == 302
|
||||
assert response.headers["location"] == "/nastyOpenRedirect"
|
||||
assert response.headers["location"] == "/example.com"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue