From: Thomas Date: Sat, 8 Aug 2015 18:56:56 +0000 (+0200) Subject: fix #564 on legacy X-Git-Tag: 1.9.2~1^2~18 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=31680f500043d97711aa434bd6591d05dd2ae617;p=github%2Fwallabag%2Fwallabag.git fix #564 on legacy --- diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 9014f455..400857b4 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -190,7 +190,7 @@ class Poche { case 'add': $content = Tools::getPageContent($url); - $title = ($content['rss']['channel']['item']['title'] != '') ? $content['rss']['channel']['item']['title'] : _('Untitled'); + $title = ($content['rss']['channel']['item']['title'] != '') ? $content['rss']['channel']['item']['title'] : parse_url($url, PHP_URL_HOST); $body = $content['rss']['channel']['item']['description']; // clean content from prevent xss attack