summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-10-29 23:51:32 +0400
committerAndrew Dolgov <[email protected]>2012-10-29 23:51:32 +0400
commit24be5e836fdd3c23f30f3a452cc9c794da09ca1d (patch)
tree5ac09c1e78f6276f586878eab424883391e46e13 /include
parentdb9e00e3395437258536df6cc8320627f873202e (diff)
remove sanitize_article_content (CDATA handled by htmLawed)
Diffstat (limited to 'include')
-rw-r--r--include/functions.php7
-rw-r--r--include/rssfuncs.php4
2 files changed, 0 insertions, 11 deletions
diff --git a/include/functions.php b/include/functions.php
index 263d9d8fe..632e2e02e 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 fbe671ca4..2aaff67cf 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]");
}