Skip to content

Commit 03f3258

Browse files
authored
Syntax fix
1 parent a3d4101 commit 03f3258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/forge.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ struct Endpoint
195195

196196
# Additional disallowed patterns:
197197
# ../, ..\, /.., \.., ./, .\, /./, \.\
198-
const PATH_TRAVERSAL = r"(?:\.{2,}[\/\\]|\.{1,}[\/\\]|[\/\\]\.{2,}|[\/\\]\.{1,}[\/\\])"
198+
PATH_TRAVERSAL = r"(?:\.{2,}[\/\\]|\.{1,}[\/\\]|[\/\\]\.{2,}|[\/\\]\.{1,}[\/\\])"
199199
if occursin(PATH_TRAVERSAL, url)
200200
throw(ArgumentError("URLs cannot contain path navigation"))
201201
end

0 commit comments

Comments
 (0)