From 3a5f5f8cef38b1eef465f6d7d196938ea91346c8 Mon Sep 17 00:00:00 2001 From: ryuring Date: Sat, 30 Sep 2023 15:19:19 +0900 Subject: [PATCH] =?UTF-8?q?fix=20#2775=20Chrome=E3=81=AE=E3=83=84=E3=83=BC?= =?UTF-8?q?=E3=83=AB=E3=82=A4=E3=83=B3=E3=82=B9=E3=83=9A=E3=82=AF=E3=82=BF?= =?UTF-8?q?=E5=88=A9=E7=94=A8=E6=99=82=E3=83=AD=E3=82=B0=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E7=8A=B6=E6=85=8B=E3=81=8C=E7=B6=99=E7=B6=9A=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E6=94=B9=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Baser/Controller/BcAppController.php | 2 +- lib/Baser/Lib/BcUtil.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Baser/Controller/BcAppController.php b/lib/Baser/Controller/BcAppController.php index d6a63fd8ee..7c292ff29c 100644 --- a/lib/Baser/Controller/BcAppController.php +++ b/lib/Baser/Controller/BcAppController.php @@ -1708,7 +1708,7 @@ protected function _checkReferer() */ public function render($view = null, $layout = null) { - if(preg_match('/\.map$/', $_SERVER['REQUEST_URI'])) return 'Not Found'; + if(isset($_SERVER['REQUEST_URI']) && preg_match('/\.map$/', $_SERVER['REQUEST_URI'])) return 'Not Found'; return parent::render($view, $layout); } diff --git a/lib/Baser/Lib/BcUtil.php b/lib/Baser/Lib/BcUtil.php index 60c5b7834e..8aacd81a0a 100644 --- a/lib/Baser/Lib/BcUtil.php +++ b/lib/Baser/Lib/BcUtil.php @@ -82,7 +82,7 @@ public static function loginUser($prefix = 'admin') { // map ファイルへのリクエストの際、PHPのセッションを書き換えてしまい // ログイン状態が継続できなくなってしまうため処理を実行しない - if(preg_match('/\.map$/', $_SERVER['REQUEST_URI'])) return null; + if(isset($_SERVER['REQUEST_URI']) && preg_match('/\.map$/', $_SERVER['REQUEST_URI'])) return null; $Session = new CakeSession(); $sessionKey = BcUtil::authSessionKey($prefix);