Project

General

Profile

Bug #24945 » 17471_svn.diff

Administrator Admin, 2011-02-21 21:33

View differences:

t3lib/error/class.t3lib_error_debugexceptionhandler.php (Arbeitskopie)
*/
public function echoExceptionWeb(Exception $exception) {
if (!headers_sent()) {
header("HTTP/1.1 500 Internal Server Error");
// make sure that we do not overwrite a previously created status header
$headerList = headers_list();
if (count($headerList) == 0 || substr($headerList[0], 0, 7) === 'HTTP/1.') {
header("HTTP/1.1 500 Internal Server Error");
}
}
$filePathAndName = $exception->getFile();
t3lib/error/class.t3lib_error_productionexceptionhandler.php (Arbeitskopie)
*/
public function echoExceptionWeb(Exception $exception) {
if (!headers_sent()) {
header("HTTP/1.1 500 Internal Server Error");
// make sure that we do not overwrite a previously created status header
$headerList = headers_list();
if (count($headerList) == 0 || substr($headerList[0], 0, 7) === 'HTTP/1.') {
header("HTTP/1.1 500 Internal Server Error");
}
}
$this->writeLogEntries($exception, self::CONTEXT_WEB);
// we use a nice-looking title for our visitors instead of the exception's class name
(1-1/4)