Skip to content

Commit

Permalink
Don't log security relevant data to prevent revealing information
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Jun 24, 2024
1 parent 5fd9171 commit bb38962
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Client/Html/Checkout/Confirm/Standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,7 @@ public function data( \Aimeos\Base\View\Iface $view, array &$tags = [], string &
$context = $this->context();
$config = $context->config();

if( ( $id = $context->session()->get( 'aimeos/orderid' ) ) === null )
{
$context->logger()->log( 'Lost session at confirmation page' . PHP_EOL
. '$_COOKIE: ' . print_r( $_COOKIE, true ) . PHP_EOL
. '$_SERVER: ' . print_r( $_SERVER, true ) );
if( ( $id = $context->session()->get( 'aimeos/orderid' ) ) === null ) {
throw new \Aimeos\Client\Html\Exception( $context->translate( 'client', 'No order ID available in session' ) );
}

Expand Down

0 comments on commit bb38962

Please sign in to comment.