]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/LinkUtils.php
Fixes #512: retrieving title didn't match the first closing tag
[github/shaarli/Shaarli.git] / application / LinkUtils.php
index 26dd6b6794c402464c007b647a5cd5dbe9a9b19f..d8dc8b5e01a2dc01112cdb5b874626012c650d10 100644 (file)
@@ -9,7 +9,7 @@
  */
 function html_extract_title($html)
 {
-    if (preg_match('!<title>(.*)</title>!is', $html, $matches)) {
+    if (preg_match('!<title>(.*?)</title>!is', $html, $matches)) {
         return trim(str_replace("\n", ' ', $matches[1]));
     }
     return false;