mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-16 18:01:38 +00:00
[add] clean content articles in cron
This commit is contained in:
parent
ded2c63312
commit
1ab567f6e3
1 changed files with 5 additions and 5 deletions
10
cron.php
10
cron.php
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
error_reporting(E_ALL);
|
||||||
include_once 'inc/poche/global.inc.php';
|
include_once 'inc/poche/global.inc.php';
|
||||||
include_once 'inc/poche/config.inc.php';
|
include_once 'inc/poche/config.inc.php';
|
||||||
|
|
||||||
|
@ -43,10 +43,10 @@ foreach ($items as $item) {
|
||||||
$body = $content['rss']['channel']['item']['description'];
|
$body = $content['rss']['channel']['item']['description'];
|
||||||
|
|
||||||
// // clean content from prevent xss attack
|
// // clean content from prevent xss attack
|
||||||
// $config = HTMLPurifier_Config::createDefault();
|
$config = HTMLPurifier_Config::createDefault();
|
||||||
// $purifier = new HTMLPurifier($config);
|
$purifier = new HTMLPurifier($config);
|
||||||
// $title = $purifier->purify($title);
|
$title = $purifier->purify($title);
|
||||||
// $body = $purifier->purify($body);
|
$body = $purifier->purify($body);
|
||||||
|
|
||||||
|
|
||||||
$store->updateContentAndTitle($item['id'], $title, $body, $user_id);
|
$store->updateContentAndTitle($item['id'], $title, $body, $user_id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue