remove sanitize_article_content (CDATA handled by htmLawed)

This commit is contained in:
Andrew Dolgov 2012-10-29 23:51:32 +04:00
parent db9e00e339
commit 24be5e836f
2 changed files with 0 additions and 11 deletions

View File

@ -3626,13 +3626,6 @@
} }
} // function encrypt_password } // 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) { function load_filters($link, $feed_id, $owner_uid, $action_id = false) {
$filters = array(); $filters = array();

View File

@ -769,10 +769,6 @@
//print_r($entry_tags); //print_r($entry_tags);
} }
# sanitize content
$entry_content = sanitize_article_content($entry_content);
$entry_title = sanitize_article_content($entry_title);
if ($debug_enabled) { if ($debug_enabled) {
_debug("update_rss_feed: done collecting data [TITLE:$entry_title]"); _debug("update_rss_feed: done collecting data [TITLE:$entry_title]");
} }