From: Andrew Dolgov Date: Mon, 29 Oct 2012 19:51:32 +0000 (+0400) Subject: remove sanitize_article_content (CDATA handled by htmLawed) X-Git-Tag: 1.6.1~42 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=24be5e836fdd3c23f30f3a452cc9c794da09ca1d;p=tt-rss.git remove sanitize_article_content (CDATA handled by htmLawed) --- diff --git a/include/functions.php b/include/functions.php index 263d9d8f..632e2e02 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3626,13 +3626,6 @@ } } // 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(); diff --git a/include/rssfuncs.php b/include/rssfuncs.php index fbe671ca..2aaff67c 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -769,10 +769,6 @@ //print_r($entry_tags); } - # sanitize content - $entry_content = sanitize_article_content($entry_content); - $entry_title = sanitize_article_content($entry_title); - if ($debug_enabled) { _debug("update_rss_feed: done collecting data [TITLE:$entry_title]"); }