]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Fix bug #3396727: Title of http://lesscss.org/ not loaded
authorChristian Weiske <cweiske@cweiske.de>
Fri, 20 Jan 2012 21:04:10 +0000 (22:04 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 20 Jan 2012 21:04:10 +0000 (22:04 +0100)
doc/ChangeLog
www/ajaxGetTitle.php

index 8485802fef51a5c0b3b4c0d048dde2bc9caa1483..6a08feaa7f960f7d0d2c1ff691724ea381bbf24b 100644 (file)
@@ -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])
index 8e5d92cdeb0f269bf68800a4be3ca88ab3bbad14..e1fbe3000c86276afd5331a3625c059c55a15eb9 100644 (file)
@@ -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