diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-18 20:01:56 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-18 20:01:56 +0200 |
commit | 143f550ba6bee8c13ce80a753fe6f15a20a551f1 (patch) | |
tree | 26ff1bb46df5ad5c1dbf711fb323a7659a715345 /inc/poche/Poche.class.php | |
parent | 5d49f06220d3a8f1c731a6cea7f39fd71e8c774d (diff) | |
parent | 729c89aec41c7f53411deb43389e2b775a29d073 (diff) | |
download | wallabag-143f550ba6bee8c13ce80a753fe6f15a20a551f1.tar.gz wallabag-143f550ba6bee8c13ce80a753fe6f15a20a551f1.tar.zst wallabag-143f550ba6bee8c13ce80a753fe6f15a20a551f1.zip |
Merge pull request #1814 from wallabag/dev
Wallabag 1.9.2
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-x | inc/poche/Poche.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 9014f455..1476d158 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -190,7 +190,7 @@ class Poche | |||
190 | { | 190 | { |
191 | case 'add': | 191 | case 'add': |
192 | $content = Tools::getPageContent($url); | 192 | $content = Tools::getPageContent($url); |
193 | $title = ($content['rss']['channel']['item']['title'] != '') ? $content['rss']['channel']['item']['title'] : _('Untitled'); | 193 | $title = ($content['rss']['channel']['item']['title'] != '') ? $content['rss']['channel']['item']['title'] : parse_url($url, PHP_URL_HOST); |
194 | $body = $content['rss']['channel']['item']['description']; | 194 | $body = $content['rss']['channel']['item']['description']; |
195 | 195 | ||
196 | // clean content from prevent xss attack | 196 | // clean content from prevent xss attack |
@@ -908,7 +908,7 @@ class Poche | |||
908 | $entries = $this->store->retrieveAllWithTags($this->user->getId()); | 908 | $entries = $this->store->retrieveAllWithTags($this->user->getId()); |
909 | if ($entries) { | 909 | if ($entries) { |
910 | echo $this->tpl->render('export.twig', array( | 910 | echo $this->tpl->render('export.twig', array( |
911 | 'export' => Tools::renderJson($entries), | 911 | 'export' => Tools::renderJson(Tools::utf8ize($entries)), |
912 | )); | 912 | )); |
913 | Tools::logm('export view'); | 913 | Tools::logm('export view'); |
914 | } else { | 914 | } else { |