From d6d44c6cfa7e3e5cdb36d9e4abd3a62edad74eb9 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 20 Jan 2012 22:04:10 +0100 Subject: Fix bug #3396727: Title of http://lesscss.org/ not loaded --- doc/ChangeLog | 1 + www/ajaxGetTitle.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/doc/ChangeLog b/doc/ChangeLog index 8485802..6a08fea 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -18,6 +18,7 @@ ChangeLog for SemantiScuttle - Fix bug: Invalid HTML when website thumbnails are activated - Fix bug #3413459: Thumbnails not in one line - Fix bug #3468293: Delicious import does not preserve private links +- Fix bug #3396727: Title of http://lesscss.org/ not loaded - Implement request #3403609: fr_CA translation update - Implement patch #3476011: PostgreSQL tables can not be initialized (Frédéric Fauberteau [triaxx]) diff --git a/www/ajaxGetTitle.php b/www/ajaxGetTitle.php index 8e5d92c..e1fbe30 100644 --- a/www/ajaxGetTitle.php +++ b/www/ajaxGetTitle.php @@ -50,7 +50,10 @@ function getTitle($url) { $title = @mb_convert_encoding($title, 'UTF-8', $encoding); } + $title = trim($title); + if (utf8_strlen($title) > 0) { + $title = html_entity_decode($title, ENT_QUOTES, 'UTF-8'); return $title; } else { // No title, so return filename -- cgit v1.2.3