diff options
author | Andrew Dolgov <[email protected]> | 2011-04-11 16:43:54 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-04-11 16:43:54 +0400 |
commit | 388c645a8b0caeeb32a2dc7472987af3da334adf (patch) | |
tree | d03ac8d8085b3f5cf95452c3910467ffcdca1050 | |
parent | f4f0f80d2118437e5047ba266f92d7acb3c38fb7 (diff) |
block STRIP_UNSAFE_TAGS (force enable)
-rw-r--r-- | functions.php | 6 | ||||
-rw-r--r-- | modules/pref-prefs.php | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/functions.php b/functions.php index f8ea2503e..98158029f 100644 --- a/functions.php +++ b/functions.php @@ -3754,9 +3754,9 @@ $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); diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 191facfd1..bcabd07ac 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -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", |