From 7f33687bd52b97189ec8495c4769aad8b5bcc760 Mon Sep 17 00:00:00 2001 From: frictionel Date: Tue, 16 Aug 2016 01:04:19 +0200 Subject: [PATCH] Update nginx_analyze.rb --- .../discourse-nginx-performance-report/script/nginx_analyze.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/discourse-nginx-performance-report/script/nginx_analyze.rb b/plugins/discourse-nginx-performance-report/script/nginx_analyze.rb index 262ad047e..29c47279e 100644 --- a/plugins/discourse-nginx-performance-report/script/nginx_analyze.rb +++ b/plugins/discourse-nginx-performance-report/script/nginx_analyze.rb @@ -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