Compare commits

..

2 Commits

Author SHA1 Message Date
F4nniu dd63aa5948 让 IDE 提示友好 2023-07-22 23:52:07 +08:00
F4nniu 85271d1cf7 使用框架 get 自带的过滤参数 2023-07-22 23:40:58 +08:00
2 changed files with 2 additions and 3 deletions

View File

@ -320,8 +320,7 @@ class Addon extends Backend
$offset = (int)$this->request->get("offset");
$limit = (int)$this->request->get("limit");
$filter = $this->request->get("filter", '');
$search = $this->request->get("search", '');
$search = htmlspecialchars(strip_tags($search));
$search = $this->request->get("search", '', 'strip_tags,htmlspecialchars');
$onlineaddons = $this->getAddonList();
$filter = (array)json_decode($filter, true);
$addons = get_addon_list();

View File

@ -11,7 +11,7 @@ if (!function_exists('__')) {
/**
* 获取语言变量值
* @param string $name 语言变量名
* @param array $vars 动态变量值
* @param string | array $vars 动态变量值
* @param string $lang 语言
* @return mixed
*/