From f7dd2d0255b3e29cd20cdb8827bc2801559663f5 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Mon, 13 Jul 2015 18:06:59 +0300 Subject: [PATCH] Add pw filtered #2757 --- app/controllers/epp_controller.rb | 2 +- config/initializers/filter_parameter_logging.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/epp_controller.rb b/app/controllers/epp_controller.rb index 16090a885..38f9fc7b9 100644 --- a/app/controllers/epp_controller.rb +++ b/app/controllers/epp_controller.rb @@ -280,7 +280,7 @@ class EppController < ApplicationController # filter pw if request_command == 'login' && frame.present? - frame.gsub!(/.+<\/pw>/, '[FILTERED]') + frame.gsub!(/pw>.+<\//, 'pw>[FILTERED].+<\//, 'pw>[FILTERED]