mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Merge pull request #192 from david-ford/working-branch
Fix case sensitive check to be case insensitive
This commit is contained in:
commit
81ad239197
@ -17,7 +17,7 @@ class DreamServer(BaseHTTPRequestHandler):
|
||||
self.wfile.write(content.read())
|
||||
else:
|
||||
path = "." + self.path
|
||||
cwd = os.getcwd()
|
||||
cwd = os.path.realpath(os.getcwd())
|
||||
is_in_cwd = os.path.commonprefix((os.path.realpath(path), cwd)) == cwd
|
||||
if not (is_in_cwd and os.path.exists(path)):
|
||||
self.send_response(404)
|
||||
|
Loading…
Reference in New Issue
Block a user