X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FLinkUtils.php;h=d8dc8b5e01a2dc01112cdb5b874626012c650d10;hb=68ea1d2b30db8ab295e47e9ac5f6c8e81676caf7;hp=26dd6b6794c402464c007b647a5cd5dbe9a9b19f;hpb=890afc32f744859d11b97eb26ed5c030af9b4145;p=github%2Fshaarli%2FShaarli.git diff --git a/application/LinkUtils.php b/application/LinkUtils.php index 26dd6b67..d8dc8b5e 100644 --- a/application/LinkUtils.php +++ b/application/LinkUtils.php @@ -9,7 +9,7 @@ */ function html_extract_title($html) { - if (preg_match('!(.*)!is', $html, $matches)) { + if (preg_match('!(.*?)!is', $html, $matches)) { return trim(str_replace("\n", ' ', $matches[1])); } return false;