Browse Source

bug fix: url parse support character "&"

master
filesite 5 days ago
parent
commit
e8b94e8fde
  1. 2
      plugins/Common.php

2
plugins/Common.php

@ -520,7 +520,7 @@ Class Common { @@ -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];
}

Loading…
Cancel
Save