Skip to content

Commit 85cd890

Browse files
committed
Fix: typo in traversal
1 parent 46bbda7 commit 85cd890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/httpserver_templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
def directory_listing(request: Request):
3030
path = request.query_params.get("path") or ""
3131

32-
# Preventing path travelsal by removing all ../ from path
32+
# Preventing path traversal by removing all ../ from path
3333
path = re.sub(r"\/(\.\.)\/|\/(\.\.)|(\.\.)\/", "/", path).strip("/")
3434

3535
if path:

0 commit comments

Comments
 (0)