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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user