mirror of https://github.com/geohot/qira
Update qira_webserver.py
Deletion of the firefox blocking
This commit is contained in:
parent
12afdb2e68
commit
6ed4a06a3d
|
@ -396,9 +396,6 @@ def getregisters(forknum, clnum):
|
|||
@app.route('/', defaults={'path': 'index.html'})
|
||||
@app.route('/<path:path>')
|
||||
def serve(path):
|
||||
if 'Firefox' in request.headers.get('User-Agent'):
|
||||
return "<pre>WTF you use Firefox?!?\n\nGo download a real web browser, like Chrome, and try this again"
|
||||
|
||||
# best security?
|
||||
if ".." in path:
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue