diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2014-03-07 14:49:36 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2014-03-07 14:49:36 +0100 |
commit | 1ab567f6e35e1d082b142db8084089a4517747a2 (patch) | |
tree | 3a44d2aec64e76968491032d52ff8e6b3f5458f3 | |
parent | ded2c63312c32c85f386d6cd8cd7085d8a9407e9 (diff) | |
download | wallabag-1ab567f6e35e1d082b142db8084089a4517747a2.tar.gz wallabag-1ab567f6e35e1d082b142db8084089a4517747a2.tar.zst wallabag-1ab567f6e35e1d082b142db8084089a4517747a2.zip |
[add] clean content articles in cron
-rw-r--r-- | cron.php | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | <?php | 1 | <?php |
2 | 2 | error_reporting(E_ALL); | |
3 | include_once 'inc/poche/global.inc.php'; | 3 | include_once 'inc/poche/global.inc.php'; |
4 | include_once 'inc/poche/config.inc.php'; | 4 | include_once 'inc/poche/config.inc.php'; |
5 | 5 | ||
@@ -43,10 +43,10 @@ foreach ($items as $item) { | |||
43 | $body = $content['rss']['channel']['item']['description']; | 43 | $body = $content['rss']['channel']['item']['description']; |
44 | 44 | ||
45 | // // clean content from prevent xss attack | 45 | // // clean content from prevent xss attack |
46 | // $config = HTMLPurifier_Config::createDefault(); | 46 | $config = HTMLPurifier_Config::createDefault(); |
47 | // $purifier = new HTMLPurifier($config); | 47 | $purifier = new HTMLPurifier($config); |
48 | // $title = $purifier->purify($title); | 48 | $title = $purifier->purify($title); |
49 | // $body = $purifier->purify($body); | 49 | $body = $purifier->purify($body); |
50 | 50 | ||
51 | 51 | ||
52 | $store->updateContentAndTitle($item['id'], $title, $body, $user_id); | 52 | $store->updateContentAndTitle($item['id'], $title, $body, $user_id); |