]> git.wh0rd.org Git - tt-rss.git/commitdiff
block STRIP_UNSAFE_TAGS (force enable)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 11 Apr 2011 12:43:54 +0000 (16:43 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 11 Apr 2011 12:43:54 +0000 (16:43 +0400)
functions.php
modules/pref-prefs.php

index f8ea2503e175119e4dddab8bb2bbdcddbbf991b3..98158029ffeb4c0b87539f6512e33390ddba8624 100644 (file)
 
                $res = trim($str); if (!$res) return '';
 
-               if (get_pref($link, "STRIP_UNSAFE_TAGS", $owner) || $force_strip_tags) {
-                       $res = $purifier->purify($res);
-               }
+//             if (get_pref($link, "STRIP_UNSAFE_TAGS", $owner) || $force_strip_tags) {
+               $res = $purifier->purify($res);
+//             }
 
                if (get_pref($link, "STRIP_IMAGES", $owner)) {
                        $res = preg_replace('/<img[^>]+>/is', '', $res);
index 191facfd1b0d2126c9764014ed29e67be3e3e964..bcabd07ac2e2502848f0aa1309b6d80743bbd1b9 100644 (file)
@@ -5,7 +5,8 @@
 
                $subop = $_REQUEST["subop"];
 
-               $prefs_blacklist = array("HIDE_READ_FEEDS", "FEEDS_SORT_BY_UNREAD");
+               $prefs_blacklist = array("HIDE_READ_FEEDS", "FEEDS_SORT_BY_UNREAD",
+                       "STRIP_UNSAFE_TAGS");
 
                $profile_blacklist = array("ALLOW_DUPLICATE_POSTS", "PURGE_OLD_DAYS",
                        "PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP",