aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-01-20 22:04:10 +0100
committerChristian Weiske <cweiske@cweiske.de>2012-01-20 22:04:10 +0100
commitd6d44c6cfa7e3e5cdb36d9e4abd3a62edad74eb9 (patch)
tree32d99c295957c523122a9d58ab78170c76fdf404
parenta9df65da0888233e66e35aa6fef3d5870db73d4f (diff)
downloadsemanticscuttle-d6d44c6cfa7e3e5cdb36d9e4abd3a62edad74eb9.tar.gz
semanticscuttle-d6d44c6cfa7e3e5cdb36d9e4abd3a62edad74eb9.tar.bz2
Fix bug #3396727: Title of http://lesscss.org/ not loaded
-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