authorize,proxy: remove support for paths within the from parameter

This commit is contained in:
Caleb Doxsey 2020-04-16 16:00:00 -06:00 committed by Caleb Doxsey
parent 5ad0e0ebdc
commit 85a1a6d013
5 changed files with 6 additions and 15 deletions

View file

@ -54,9 +54,6 @@ test_allowed_route_source {
allowed_route("http://example.com", {"source": "http://example.com"})
allowed_route("http://example.com", {"source": "https://example.com"})
not allowed_route("http://example.org", {"source": "example.com"})
allowed_route("http://example.com/some/path", {"source": "https://example.com/some/path"})
allowed_route("http://example.com/some/path", {"source": "https://example.com/some/path?qs"})
not allowed_route("http://example.com/some/other/path", {"source": "https://example.com/some/path"})
}
test_allowed_route_prefix {