diff --git a/index.php b/index.php index 90a5fc15..1db72830 100644 --- a/index.php +++ b/index.php @@ -24,6 +24,7 @@ * @link https://my-aac.org */ +ob_start(); require_once 'common.php'; require_once SYSTEM . 'functions.php'; diff --git a/system/exception.php b/system/exception.php index 5974fcbd..40ad3df6 100644 --- a/system/exception.php +++ b/system/exception.php @@ -43,6 +43,7 @@ function exception_handler($exception) { $content = file_get_contents($template_file); $content = str_replace(array('{{ BASE_URL }}', '{{ exceptionClass }}', '{{ message }}', '{{ backtrace }}', '{{ powered_by }}'), array(BASE_URL, get_class($exception), $message, $backtrace_formatted, base64_decode('UG93ZXJlZCBieSA8YSBocmVmPSJodHRwOi8vbXktYWFjLm9yZyIgdGFyZ2V0PSJfYmxhbmsiPk15QUFDLjwvYT4=')), $content); + @ob_clean(); echo $content; }