fix: early return when we error out
This commit is contained in:
parent
81c44c9b18
commit
54a6085392
@ -53,10 +53,12 @@ class HttpServer(BaseHTTPRequestHandler):
|
||||
if '_svr_' in uri:
|
||||
m = 'Forbidden'
|
||||
self.send_error(403, m)
|
||||
return
|
||||
|
||||
if '.iwd' not in uri and 'mod.ff' not in uri:
|
||||
m = 'Forbidden'
|
||||
self.send_error(403, m)
|
||||
return
|
||||
|
||||
path = join(fs_base_path, fs_game_dir)
|
||||
file = join(path, uri)
|
||||
|
Loading…
x
Reference in New Issue
Block a user