From 2174a497b5afbbcb4eb7e1d8e1c9dbda6cac88bf Mon Sep 17 00:00:00 2001 From: Podlesnov Phedor Date: Thu, 15 Jul 2021 16:41:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B4=D0=BE=D1=81=D1=82=D1=83=D0=BF=D0=BD=D1=8B?= =?UTF-8?q?=D1=85=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=BE=D0=B2=20=D0=B2=20?= =?UTF-8?q?json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Filter/Login.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Filter/Login.php b/src/Filter/Login.php index e2b5cff..63c7ff5 100644 --- a/src/Filter/Login.php +++ b/src/Filter/Login.php @@ -166,9 +166,9 @@ class Filter_Login extends Filter_Filter $module = $request->get('module'); $action = $request->get('action'); - $file = Path::join(CMS_PATH, 'modules', $module, 'filters', 'white.php'); + $file = Path::join(CMS_PATH, 'modules', $module, 'filters', 'white.json'); if (file_exists($file)) { - $whiteList = include $file; + $whiteList = json_decode(file_get_contents($file), true); if (in_array($action, $whiteList)) { return true; }