diff options
author | 2014-09-07 23:50:03 +0200 | |
---|---|---|
committer | 2014-09-14 10:59:52 +0200 | |
commit | 4cd693b5c4f2ede4ac4928b5b433b3932d64519a (patch) | |
tree | 5a22ec483885290094ac38a06a8c3bf877856820 /module/plugins/hooks/UpdateManager.py | |
parent | Merge branch 'stable' into 0.4.10 (diff) | |
download | pyload-4cd693b5c4f2ede4ac4928b5b433b3932d64519a.tar.xz |
save_join -> safe_join & save_path -> safe_filename
Diffstat (limited to 'module/plugins/hooks/UpdateManager.py')
-rw-r--r-- | module/plugins/hooks/UpdateManager.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py index 546e6e6e8..320bc24e3 100644 --- a/module/plugins/hooks/UpdateManager.py +++ b/module/plugins/hooks/UpdateManager.py @@ -8,7 +8,7 @@ from os import path, remove, stat from module.network.RequestFactory import getURL from module.plugins.Hook import Expose, Hook, threaded -from module.utils import save_join +from module.utils import safe_join class UpdateManager(Hook): @@ -200,7 +200,7 @@ class UpdateManager(Hook): content = getURL(url % plugin) m = vre.search(content) if m and m.group(2) == version: - f = open(save_join("userplugins", prefix, filename), "wb") + f = open(safe_join("userplugins", prefix, filename), "wb") f.write(content) f.close() updated.append((prefix, name)) @@ -257,7 +257,7 @@ class UpdateManager(Hook): for root in ("userplugins", path.join(pypath, "module", "plugins")): - filename = save_join(root, type, file) + filename = safe_join(root, type, file) try: remove(filename) except Exception, e: |