diff options
Diffstat (limited to 'unshorturl/unshorturl.php')
-rw-r--r-- | unshorturl/unshorturl.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unshorturl/unshorturl.php b/unshorturl/unshorturl.php index cbe3208..cd09e13 100644 --- a/unshorturl/unshorturl.php +++ b/unshorturl/unshorturl.php @@ -49,6 +49,7 @@ function unshorturl_prepare_body(&$body) { $matches = []; $num_matches = preg_match_all('/https?:\/\/(bit\.ly|dlvr\.it|t\.co)\/\w+/', $body['html'], $matches); if ($num_matches > 0) { + $matches = array_unique($matches); foreach ($matches as $links) { foreach($links as $l) { $longurl = unshorturl_get_long_url($l); |