Skip to content

Commit fa10812

Browse files
committed
Hide domain and contact passwords in the logging
1 parent d3548ef commit fa10812

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Protocols/EPP/eppConnection.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,12 +1110,16 @@ protected function writeLog($text,$action) {
11101110
$text = $this->hideTextBetween($text,'<clID>','</clID>');
11111111
// Hide password in the logging
11121112
$text = $this->hideTextBetween($text,'<pw>','</pw>');
1113-
// Hide password in the logging
11141113
$text = $this->hideTextBetween($text,'<pw><![CDATA[',']]></pw>');
11151114
// Hide new password in the logging
11161115
$text = $this->hideTextBetween($text,'<newPW>','</newPW>');
1117-
// Hide new password in the logging
11181116
$text = $this->hideTextBetween($text,'<newPW><![CDATA[',']]></newPW>');
1117+
// Hide domain password in the logging
1118+
$text = $this->hideTextBetween($text,'<domain:pw>','</domain:pw>');
1119+
$text = $this->hideTextBetween($text,'<domain:pw><![CDATA[',']]></domain:pw>');
1120+
// Hide contact password in the logging
1121+
$text = $this->hideTextBetween($text,'<contact:pw>','</contact:pw>');
1122+
$text = $this->hideTextBetween($text,'<contact:pw><![CDATA[',']]></contact:pw>');
11191123
//echo "-----".date("Y-m-d H:i:s")."-----".$text."-----end-----\n";
11201124
$log = "-----" . $action . "-----" . date("Y-m-d H:i:s") . "-----\n" . $text . "\n-----END-----" . date("Y-m-d H:i:s") . "-----\n";
11211125
$this->logentries[] = $log;

0 commit comments

Comments
 (0)