mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 22:51:28 +00:00
Revert "sanitize article content when importing data from feed"
This reverts commit c7fe1b4e9e.
Conflicts:
include/functions.php
include/rssfuncs.php
This commit is contained in:
@@ -2686,7 +2686,7 @@
|
||||
|
||||
}
|
||||
|
||||
function sanitize($link, $str, $owner = false, $site_url = false) {
|
||||
function sanitize($link, $str, $force_strip_tags = false, $owner = false, $site_url = false) {
|
||||
if (!$owner) $owner = $_SESSION["uid"];
|
||||
|
||||
$res = trim($str); if (!$res) return '';
|
||||
@@ -3626,6 +3626,13 @@
|
||||
}
|
||||
} // function encrypt_password
|
||||
|
||||
function sanitize_article_content($text) {
|
||||
# we don't support CDATA sections in articles, they break our own escaping
|
||||
$text = preg_replace("/\[\[CDATA/", "", $text);
|
||||
$text = preg_replace("/\]\]\>/", "", $text);
|
||||
return db_escape_string($text, false);
|
||||
}
|
||||
|
||||
function load_filters($link, $feed_id, $owner_uid, $action_id = false) {
|
||||
$filters = array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user