diff --git a/application/controllers/infofix.php b/application/controllers/infofix.php index 18125d8a..1522e2f8 100644 --- a/application/controllers/infofix.php +++ b/application/controllers/infofix.php @@ -26,7 +26,13 @@ class infofix extends CI_Controller $key_arr = explode(',', $keys); // 容错 - if (empty($site) || empty($keys) || strpos($keys, '/') === false) { + if ( + empty($site) || + empty($keys) || + mb_stripos($keys, '/') === false || + mb_stripos($keys, 'undefined') !== false || + mb_stripos($keys, 'null') !== false + ) { echo json_encode(array()); return false; }