mirror of
https://github.com/typecho/typecho.git
synced 2025-04-04 18:22:23 +02:00
Merge branch 'master' of https://github.com/typecho/typecho
This commit is contained in:
commit
5da128b0c7
@ -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'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user