From 58f764ee060ba0d36ae5cafd5529f88d90962a48 Mon Sep 17 00:00:00 2001 From: fordnox Date: Mon, 3 Nov 2014 15:49:27 +0200 Subject: [PATCH] Reenable hiding error stack messages from public eyes --- src/bb-load.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bb-load.php b/src/bb-load.php index 4eea3023d..e410ccddb 100644 --- a/src/bb-load.php +++ b/src/bb-load.php @@ -62,13 +62,13 @@ function handler_exception(Exception $e) print sprintf('

%s

', $e->getMessage()); print sprintf('

Look for detailed error explanation

', urlencode($e->getMessage())); - //if(defined('BB_DEBUG') && BB_DEBUG) { + if(defined('BB_DEBUG') && BB_DEBUG) { print sprintf('%s', 'Set BB_DEBUG to FALSE, to hide the message below'); print sprintf('

Class: "%s"

', get_class($e)); print sprintf('

File: "%s"

', $e->getFile()); print sprintf('

Line: "%s"

', $e->getLine()); print sprintf('Trace:
%s
', $e->getTraceAsString()); - //} + } } set_exception_handler("handler_exception");