Skip to content

Commit

Permalink
change regex for hash from md5 to more generic to catch more hashes (…
Browse files Browse the repository at this point in the history
…ex: apikey in rss feed), and hide email_from as well (#2499)
  • Loading branch information
thezoggy committed Mar 15, 2023
1 parent c593388 commit 895ac56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sabnzbd/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,10 +629,10 @@ def _api_warnings(name, kwargs):
LOG_USER_RE = re.compile(rb"(user|username)\s?=\s?[\S]+", re.I)
LOG_PASS_RE = re.compile(rb"(password)\s?=\s?[\S]+", re.I)
LOG_INI_HIDE_RE = re.compile(
rb"(email_pwd|email_account|email_to|pushover_token|pushover_userkey|pushbullet_apikey|prowl_apikey|growl_password|growl_server|IPv[4|6] address)\s?=\s?[\S]+",
rb"(email_pwd|email_account|email_to|email_from|pushover_token|pushover_userkey|pushbullet_apikey|prowl_apikey|growl_password|growl_server|IPv[4|6] address)\s?=\s?[\S]+",
re.I,
)
LOG_HASH_RE = re.compile(rb"([a-fA-F\d]{25})", re.I)
LOG_HASH_RE = re.compile(rb"([a-zA-Z\d]{25})", re.I)


def _api_showlog(name, kwargs):
Expand Down

0 comments on commit 895ac56

Please sign in to comment.