Skip to content

Commit 6b1e2bf

Browse files
authored
disable showerrors by default (simplesamlphp#2513)
1 parent bf95d95 commit 6b1e2bf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config/config.php.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ $config = [
344344
* When 'errorreporting' is enabled, a form will be presented for the user to report
345345
* the error to 'technicalcontact_email'.
346346
*/
347-
'showerrors' => true,
347+
'showerrors' => false,
348348
'errorreporting' => true,
349349

350350
/*

src/SimpleSAML/Error/Error.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function show(int $logLevel = Logger::ERR, bool $suppressReport = false):
261261
$config = Configuration::getInstance();
262262

263263
$data = [];
264-
$data['showerrors'] = $config->getOptionalBoolean('showerrors', true);
264+
$data['showerrors'] = $config->getOptionalBoolean('showerrors', false);
265265
$data['error'] = $errorData;
266266
$data['errorCode'] = $this->errorCode;
267267
$data['parameters'] = $this->parameters;

0 commit comments

Comments
 (0)