mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 05:01:14 +08:00
FIX: Don't sanitize API username so that we can potentially identify the source.
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=([\w.\-]+)/, '\1=[FILTERED]')
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user