mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Added headers_sent() check to header() call in main.php to stop it from being so brittle.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@67776 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d9b3abf8ac
commit
36561405c5
2
main.php
2
main.php
@ -57,7 +57,7 @@ if($majorVersion < 5) {
|
||||
*/
|
||||
require_once("core/Core.php");
|
||||
|
||||
header("Content-type: text/html; charset=\"utf-8\"");
|
||||
if(!headers_sent()) header("Content-type: text/html; charset=\"utf-8\"");
|
||||
if (function_exists('mb_http_output')) {
|
||||
mb_http_output('UTF-8');
|
||||
mb_internal_encoding('UTF-8');
|
||||
|
Loading…
x
Reference in New Issue
Block a user