From 68ea1d2b30db8ab295e47e9ac5f6c8e81676caf7 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 8 Mar 2016 10:00:53 +0100 Subject: Fixes #512: retrieving title didn't match the first closing tag --- application/LinkUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application') 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; -- cgit v1.2.3