The branch, twofactorauth has been updated via 40b6b7d3b3dea15cb21d0ee5a6deb4629dfed20e (commit) from 0d27975dc295831410a0a560b71d8acca1128667 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- ----------------------------------------------------------------------- Summary of changes: x2go/defaults.py | 5 +++++ x2go/dropbox.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) The diff of changes is: diff --git a/x2go/defaults.py b/x2go/defaults.py index 85dd978..a7b7959 100644 --- a/x2go/defaults.py +++ b/x2go/defaults.py @@ -370,3 +370,8 @@ X2GO_DROPBOX_ACTIONS = { } """Relating dropbox action names and classes.""" +X2GO_DROPBOX_EXTENSIONS_BLACKLIST = [ + 'LOCK', 'SYS', 'SWP', + 'EXE', 'COM', 'CMD', 'PS1', 'PS2', 'BAT', + 'JS', 'PY', 'PL', 'SH', +] \ No newline at end of file diff --git a/x2go/dropbox.py b/x2go/dropbox.py index 4767779..207c58b 100644 --- a/x2go/dropbox.py +++ b/x2go/dropbox.py @@ -216,7 +216,8 @@ def x2go_dropboxjob_handler(dropbox_file=None, logger('action for printing is: %s' % dropbox_action, loglevel=log.loglevel_DEBUG) - _really_process = bool((not dropbox_extensions) or [ ext for ext in dropbox_extensions if dropbox_file.upper().endswith('%s' % ext.upper()) ]) + _blacklisted = dropbox_file.upper().split('.')[-1] in defaults.X2GO_DROPBOX_EXTENSIONS_BLACKLIST + _really_process = bool(not _blacklisted and ((not dropbox_extensions) or [ ext for ext in dropbox_extensions if dropbox_file.upper().endswith('%s' % ext.upper())) ]) if _really_process: dropbox_action.do_process(dropbox_file=dropbox_file, dropbox_dir=parent_thread.dropbox_dir, hooks/post-receive -- python-x2go.git (Python X2Go Client API) This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "python-x2go.git" (Python X2Go Client API).