diff --git a/install.php b/install.php index 0ee261e7..15acf230 100644 --- a/install.php +++ b/install.php @@ -52,8 +52,6 @@ require_once 'Typecho/Router.php'; /** 程序初始化 */ Typecho_Common::init(); -ob_start(); - else: require_once dirname(__FILE__) . '/config.inc.php'; @@ -72,6 +70,8 @@ else: endif; +ob_start(); + // 挡掉可能的跨站请求 if (!empty($_GET) || !empty($_POST)) { if (empty($_SERVER['HTTP_REFERER'])) {