aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/LinkUtils.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-03-08 10:00:53 +0100
committerArthurHoaro <arthur@hoa.ro>2016-03-08 10:00:53 +0100
commit68ea1d2b30db8ab295e47e9ac5f6c8e81676caf7 (patch)
tree3be406a48569c02a17584de99982dedd25627830 /application/LinkUtils.php
parent890afc32f744859d11b97eb26ed5c030af9b4145 (diff)
downloadShaarli-68ea1d2b30db8ab295e47e9ac5f6c8e81676caf7.tar.gz
Shaarli-68ea1d2b30db8ab295e47e9ac5f6c8e81676caf7.tar.zst
Shaarli-68ea1d2b30db8ab295e47e9ac5f6c8e81676caf7.zip
Fixes #512: retrieving title didn't match the first closing tag
Diffstat (limited to 'application/LinkUtils.php')
-rw-r--r--application/LinkUtils.php2
1 files changed, 1 insertions, 1 deletions
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 @@
9 */ 9 */
10function html_extract_title($html) 10function html_extract_title($html)
11{ 11{
12 if (preg_match('!<title>(.*)</title>!is', $html, $matches)) { 12 if (preg_match('!<title>(.*?)</title>!is', $html, $matches)) {
13 return trim(str_replace("\n", ' ', $matches[1])); 13 return trim(str_replace("\n", ' ', $matches[1]));
14 } 14 }
15 return false; 15 return false;