mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Merge pull request #4395 from frictionel/patch-2
FIX: correct regex for username
This commit is contained in:
commit
ab9a8c6a3e
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class LogAnalyzer
|
|||
private
|
||||
|
||||
def self.sanitize_url(url)
|
||||
url.gsub(/(api_key|api_username)=(\w+)/, '\1=[FILTERED]')
|
||||
url.gsub(/(api_key|api_username)=([\w.\-]+)/, '\1=[FILTERED]')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue