summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-11-04 20:55:50 +0100
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-11-04 20:55:50 +0100
commit225dc7c20bee60c9da4b1a1b47ef68fc1d4d51fd (patch)
treeaeebe9fefd7a19834b5621799dc764620a82c336 /module
parent[Plugin] censor ACCOUNT request data (diff)
downloadpyload-225dc7c20bee60c9da4b1a1b47ef68fc1d4d51fd.tar.xz
[Account] reimplement safe_info with deepcopy
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/Account.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index 1c03f0b1c..fcfe7e0b7 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
+import copy
import random
import re
import threading
@@ -12,7 +13,7 @@ from module.plugins.internal.utils import compare_time, isiterable, lock, parse_
class Account(Plugin):
__name__ = "Account"
__type__ = "account"
- __version__ = "0.65"
+ __version__ = "0.66"
__status__ = "stable"
__description__ = """Base account plugin"""
@@ -237,7 +238,9 @@ class Account(Plugin):
self.syncback()
- self.log_debug("Account info for user `%s`: %s" % (self.user, self.info))
+ safe_info = copy.deepcopy(self.info)
+ safe_info['login']['password'] = "**********"
+ self.log_debug("Account info for user `%s`: %s" % (self.user, safe_info))
return self.info