diff options
author | 2015-12-27 02:09:56 +0100 | |
---|---|---|
committer | 2015-12-27 02:09:56 +0100 | |
commit | 29049ab7b25f96d4f59e4cb7b6773a52bad5576b (patch) | |
tree | f957e7e270ec443cc734b663002bcbd55bb24d64 /module/plugins/internal/Plugin.py | |
parent | typo (diff) | |
download | pyload-29049ab7b25f96d4f59e4cb7b6773a52bad5576b.tar.xz |
[utils] new function: safe_format()
Diffstat (limited to 'module/plugins/internal/Plugin.py')
-rw-r--r-- | module/plugins/internal/Plugin.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py index e439dd912..bf591d482 100644 --- a/module/plugins/internal/Plugin.py +++ b/module/plugins/internal/Plugin.py @@ -20,7 +20,7 @@ from module.plugins.internal.utils import * class Plugin(object): __name__ = "Plugin" __type__ = "plugin" - __version__ = "0.60" + __version__ = "0.61" __status__ = "stable" __config__ = [] #: [("name", "type", "desc", "default")] @@ -214,7 +214,8 @@ class Plugin(object): """ if self.pyload.debug: self.log_debug("LOAD URL " + url, - *["%s=%s" % (key, "{********}" if self.__type__ == "account" and key in ("get", "post") else val) for key, val in locals().items() if key not in ("self", "url", "_[1]")]) + *["%s=%s" % (key, safe_format(val, self.info['login']['password']) if self.__type__ == "account" else val) + for key, val in locals().items() if key not in ("self", "url", "_[1]")]) url = fixurl(url, unquote=True) #: Recheck in 0.4.10 |