From 2dba5aad3f9f7061947d5eed9af7ded319bff416 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Fri, 24 May 2024 13:52:03 +0800 Subject: [PATCH] fix up 2 --- application/controllers/infofix.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/application/controllers/infofix.php b/application/controllers/infofix.php index 1522e2f8..2844cd2b 100644 --- a/application/controllers/infofix.php +++ b/application/controllers/infofix.php @@ -29,9 +29,7 @@ class infofix extends CI_Controller if ( empty($site) || empty($keys) || - mb_stripos($keys, '/') === false || - mb_stripos($keys, 'undefined') !== false || - mb_stripos($keys, 'null') !== false + mb_stripos($keys, '/') === false ) { echo json_encode(array()); return false; @@ -118,7 +116,13 @@ class infofix extends CI_Controller //return true; // 容错 - if (empty($site) || count($keyArr) != 4 || strpos($keys, '/') === false) { + if ( + empty($site) || + count($keyArr) != 4 || + mb_stripos($keys, '/') === false || + mb_stripos($keys, 'undefined') !== false || + mb_stripos($keys, 'null') !== false + ) { echo json_encode(array()); return false; }