From c7f9eb9baae321fa9d91a85f985ede51137f4455 Mon Sep 17 00:00:00 2001 From: filesite Date: Fri, 27 Jun 2025 07:08:41 +0800 Subject: [PATCH] fix url parse --- plugins/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Common.php b/plugins/Common.php index 8e7b18b..bfdf5c0 100644 --- a/plugins/Common.php +++ b/plugins/Common.php @@ -520,7 +520,7 @@ Class Common { public static function getShareUrlFromContent($content) { $url = ''; - preg_match("/http(s)?:\/\/[\w\-\.]+\.([a-z]){2,}[\/\w\-\.\?\=&]*/i", $content, $matches); + preg_match("/http(s)?:\/\/[\w\-\.]+\.([a-z]){2,}[\/\w\-\.\?\=_&]*/i", $content, $matches); if (!empty($matches)) { $url = $matches[0]; }