]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
fix #564 on legacy
authorThomas <tcit@tcit.fr>
Sat, 8 Aug 2015 18:56:56 +0000 (20:56 +0200)
committerThomas <tcit@tcit.fr>
Sat, 8 Aug 2015 18:56:56 +0000 (20:56 +0200)
inc/poche/Poche.class.php

index 9014f455f83e8b2b478bccf2093817f091317929..400857b492c46b3f307fe77be2d6fefb39131ae4 100755 (executable)
@@ -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