Skip to content

Commit

Permalink
Hide domain and contact passwords in the logging
Browse files Browse the repository at this point in the history
  • Loading branch information
metaregistrar committed Sep 11, 2019
1 parent d3548ef commit fa10812
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Protocols/EPP/eppConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1110,12 +1110,16 @@ protected function writeLog($text,$action) {
$text = $this->hideTextBetween($text,'<clID>','</clID>');
// Hide password in the logging
$text = $this->hideTextBetween($text,'<pw>','</pw>');
// Hide password in the logging
$text = $this->hideTextBetween($text,'<pw><![CDATA[',']]></pw>');
// Hide new password in the logging
$text = $this->hideTextBetween($text,'<newPW>','</newPW>');
// Hide new password in the logging
$text = $this->hideTextBetween($text,'<newPW><![CDATA[',']]></newPW>');
// Hide domain password in the logging
$text = $this->hideTextBetween($text,'<domain:pw>','</domain:pw>');
$text = $this->hideTextBetween($text,'<domain:pw><![CDATA[',']]></domain:pw>');
// Hide contact password in the logging
$text = $this->hideTextBetween($text,'<contact:pw>','</contact:pw>');
$text = $this->hideTextBetween($text,'<contact:pw><![CDATA[',']]></contact:pw>');
//echo "-----".date("Y-m-d H:i:s")."-----".$text."-----end-----\n";
$log = "-----" . $action . "-----" . date("Y-m-d H:i:s") . "-----\n" . $text . "\n-----END-----" . date("Y-m-d H:i:s") . "-----\n";
$this->logentries[] = $log;
Expand Down

0 comments on commit fa10812

Please sign in to comment.