From 2ebab4bee874cc819c8a69537708641eea5751a6 Mon Sep 17 00:00:00 2001 From: Ryan Lieu Date: Wed, 7 Jun 2023 11:48:45 +0800 Subject: [PATCH] fix: Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) --- views/market.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/views/market.php b/views/market.php index 7879334..1d855e8 100644 --- a/views/market.php +++ b/views/market.php @@ -2,9 +2,9 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; $storeUrl = Typecho_Common::url(__TYPECHO_ADMIN_DIR__.'te-store/',$this->options->index); -$keywords = htmlspecialchars($this->request->keywords); -$group = htmlspecialchars($this->request->group); -$page = htmlspecialchars($this->request->page); +$keywords = htmlspecialchars($this->request->keywords ?? ""); +$group = htmlspecialchars($this->request->group ?? ""); +$page = htmlspecialchars($this->request->page ?? ""); define('TYPEHO_ADMIN_PATH',__TYPECHO_ROOT_DIR__.__TYPECHO_ADMIN_DIR__); //异步加载插件列表 @@ -250,4 +250,4 @@ });