mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 20:05:40 +08:00
Update nginx_analyze.rb
This commit is contained in:
parent
37b68f10ae
commit
7f33687bd5
@ -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…
x
Reference in New Issue
Block a user