From 24be5e836fdd3c23f30f3a452cc9c794da09ca1d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 29 Oct 2012 23:51:32 +0400 Subject: [PATCH] remove sanitize_article_content (CDATA handled by htmLawed) --- include/functions.php | 7 ------- include/rssfuncs.php | 4 ---- 2 files changed, 11 deletions(-) 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]"); } -- 2.39.5