버전 5.4.5.4 수정

This commit is contained in:
thisgun
2021-05-03 11:59:45 +09:00
2 changed files with 2 additions and 3 deletions

View File

@ -242,7 +242,6 @@ if( ! class_exists('XenoPostToForm') ){
class XenoPostToForm
{
public static function check() {
$cookie_session_name = (defined('G5_SESSION_NAME') && G5_SESSION_NAME) ? G5_SESSION_NAME : 'PHPSESSID';
return !isset($_COOKIE[$cookie_session_name]) && count($_POST) && ((isset($_SERVER['HTTP_REFERER']) && !preg_match('~^https://'.preg_quote($_SERVER['HTTP_HOST'], '~').'/~', $_SERVER['HTTP_REFERER']) || ! isset($_SERVER['HTTP_REFERER']) ));