diff options
author | Christian Weiske <cweiske@cweiske.de> | 2012-01-20 22:04:10 +0100 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2012-01-20 22:04:10 +0100 |
commit | d6d44c6cfa7e3e5cdb36d9e4abd3a62edad74eb9 (patch) | |
tree | 32d99c295957c523122a9d58ab78170c76fdf404 | |
parent | a9df65da0888233e66e35aa6fef3d5870db73d4f (diff) | |
download | semanticscuttle-d6d44c6cfa7e3e5cdb36d9e4abd3a62edad74eb9.tar.gz semanticscuttle-d6d44c6cfa7e3e5cdb36d9e4abd3a62edad74eb9.tar.bz2 |
Fix bug #3396727: Title of http://lesscss.org/ not loaded
-rw-r--r-- | doc/ChangeLog | 1 | ||||
-rw-r--r-- | www/ajaxGetTitle.php | 3 |
2 files changed, 4 insertions, 0 deletions
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 |