From e8b94e8fde5b4c6ff71bc95d41b21be0ea87afaa Mon Sep 17 00:00:00 2001 From: filesite Date: Fri, 27 Jun 2025 06:55:26 +0800 Subject: [PATCH] bug fix: url parse support character "&" --- plugins/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Common.php b/plugins/Common.php index b7badb2..8e7b18b 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]; }