1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

fix #564 on legacy

This commit is contained in:
Thomas 2015-08-08 20:56:56 +02:00
parent 483090f1e1
commit 31680f5000

View file

@ -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