Skip to content

Commit

Permalink
Fixes #3769 Hiding backtrace on login form + error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Mar 2, 2013
1 parent 838a7ab commit 6dbc84e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/Controller.php
Expand Up @@ -462,7 +462,7 @@ protected function setGeneralVariablesView($view)

$view->topMenu = Piwik_GetTopMenu();
} catch(Exception $e) {
Piwik_ExitWithMessage($e->getMessage(), Piwik::shouldLoggerLog() ? $e->getTraceAsString() : '');
Piwik_ExitWithMessage($e->getMessage(), '' /* $e->getTraceAsString() */ );
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/FrontController.php
Expand Up @@ -139,7 +139,7 @@ function dispatch( $module = null, $action = null, $parameters = null)
} catch(Exception $e) {
$debugTrace = $e->getTraceAsString();
$message = Piwik_Common::sanitizeInputValue($e->getMessage());
Piwik_ExitWithMessage($message, Piwik::shouldLoggerLog() ? $debugTrace : '', true);
Piwik_ExitWithMessage($message, '' /* $debugTrace */, true);
}
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/Login/Login.php
Expand Up @@ -50,7 +50,7 @@ function noAccess( $notification )
$exceptionMessage = $exception->getMessage();

$controller = new Piwik_Login_Controller();
$controller->login($exceptionMessage, Piwik::shouldLoggerLog() ? $exception->getTraceAsString() : '' );
$controller->login($exceptionMessage, '' /* $exception->getTraceAsString() */ );
}

/**
Expand Down

0 comments on commit 6dbc84e

Please sign in to comment.