aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-03-07 14:49:36 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-03-07 14:49:36 +0100
commit1ab567f6e35e1d082b142db8084089a4517747a2 (patch)
tree3a44d2aec64e76968491032d52ff8e6b3f5458f3
parentded2c63312c32c85f386d6cd8cd7085d8a9407e9 (diff)
downloadwallabag-1ab567f6e35e1d082b142db8084089a4517747a2.tar.gz
wallabag-1ab567f6e35e1d082b142db8084089a4517747a2.tar.zst
wallabag-1ab567f6e35e1d082b142db8084089a4517747a2.zip
[add] clean content articles in cron
-rw-r--r--cron.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/cron.php b/cron.php
index cc137ca2..8fbf421a 100644
--- a/cron.php
+++ b/cron.php
@@ -1,5 +1,5 @@
1<?php 1<?php
2 2error_reporting(E_ALL);
3include_once 'inc/poche/global.inc.php'; 3include_once 'inc/poche/global.inc.php';
4include_once 'inc/poche/config.inc.php'; 4include_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);