From 027d800b355c9b1351ea8718e08b457d01e7cfc8 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 8817e150e..4b1af94ce 100644 --- a/app/controllers/epp_controller.rb +++ b/app/controllers/epp_controller.rb @@ -281,7 +281,7 @@ class EppController < ApplicationController # filter pw if request_command == 'login' && frame.present? - frame.gsub!(/.+<\/pw>/, '[FILTERED]') + frame.gsub!(/pw>.+<\//, 'pw>[FILTERED].+<\//, 'pw>[FILTERED]