Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/clone/Cloner.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ function set_site_details(): void {
throw new \Exception( 'Unable to get info for site ' . $this->name );
}
$this->validate_site_details( $details );
// The credentials go into the database copy commands, which are logged.
if ( method_exists( 'EE', 'obfuscate' ) ) {
EE::obfuscate( array_intersect_key( $details, array_flip( [ 'db_password', 'db_root_password', 'app_admin_password' ] ) ) );
}
$this->site_details = $details;
}

Expand Down
Loading