From e6178dc6344d1a9968cafb11c43b57aad81e1fdb Mon Sep 17 00:00:00 2001 From: filesite Date: Mon, 18 Sep 2023 23:25:31 +0800 Subject: [PATCH] improve api/addfav to support urlencoded share content --- themes/tajian/controller/ApiController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/tajian/controller/ApiController.php b/themes/tajian/controller/ApiController.php index 7d17f60..1e109bf 100644 --- a/themes/tajian/controller/ApiController.php +++ b/themes/tajian/controller/ApiController.php @@ -58,6 +58,8 @@ Class ApiController extends SiteController { if (empty($content)) { $code = 0; $err = '请粘贴填写分享内容!'; + }else { + $content = urldecode($content); } $tagName = '';