mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Merge pull request #838 from micahflee/837_hotfix_cve-2018-19960
When debug mode is enabled, don't log flask errors to disk
This commit is contained in:
commit
4da5e15581
@ -178,12 +178,19 @@ def set_gui_mode():
|
||||
def debug_mode():
|
||||
"""
|
||||
Turn on debugging mode, which will log flask errors to a debug file.
|
||||
|
||||
This is commented out (it's only needed for debugging, and not needed
|
||||
for OnionShare 1.3.2) as a hotfix to resolve this issue:
|
||||
https://github.com/micahflee/onionshare/issues/837
|
||||
"""
|
||||
pass
|
||||
"""
|
||||
temp_dir = tempfile.gettempdir()
|
||||
log_handler = logging.FileHandler(
|
||||
os.path.join(temp_dir, 'onionshare_server.log'))
|
||||
log_handler.setLevel(logging.WARNING)
|
||||
app.logger.addHandler(log_handler)
|
||||
"""
|
||||
|
||||
|
||||
def check_slug_candidate(slug_candidate, slug_compare=None):
|
||||
|
Loading…
Reference in New Issue
Block a user