Fix bug #3396727: Title of http://lesscss.org/ not loaded

This commit is contained in:
Christian Weiske 2012-01-20 22:04:10 +01:00
parent a9df65da08
commit d6d44c6cfa
2 changed files with 4 additions and 0 deletions

View 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])

View 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