mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:41:13 +08:00
Update nginx_analyze.rb
This commit is contained in:
@ -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