We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9653e5e commit 1bd86c8Copy full SHA for 1bd86c8
src/forge.jl
@@ -174,7 +174,9 @@ function assert_check_endpoint_url(url::AbstractString)
174
end
175
176
# Roundtrip the URL through `URIs.resolvereference()`, and make sure it is unchanged
177
- if url != URIs.resolvereference("https://example.invalid/", url).path
+ new_path = URIs.resolvereference("https://example.invalid/", url).path
178
+ url_leading_slash = "/" * url
179
+ if (new_path != url) && (new_path != url_leading_slash)
180
throw(ArgumentError("URLs cannot contain path navigation: $(url)"))
181
182
0 commit comments