Browse Source

fix url parse

master
filesite 5 days ago
parent
commit
c7f9eb9baa
  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