]> git.wh0rd.org - tt-rss.git/commitdiff
remove sanitize_article_content (CDATA handled by htmLawed)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 29 Oct 2012 19:51:32 +0000 (23:51 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 29 Oct 2012 19:51:32 +0000 (23:51 +0400)
include/functions.php
include/rssfuncs.php

index 263d9d8fee30a735489a88ca6352cbb0023df05c..632e2e02e0d924fcd37e77be76b0b8e5e7dea26d 100644 (file)
                }
        } // 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();
 
index fbe671ca4a71a55423497dae286baa7a2933b820..2aaff67cf90fe58a8362872421f2a0f76d48611a 100644 (file)
                                        //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]");
                                }