aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/ChangeLog1
-rw-r--r--www/ajaxGetTitle.php3
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