block STRIP_UNSAFE_TAGS (force enable)

This commit is contained in:
Andrew Dolgov 2011-04-11 16:43:54 +04:00
parent f4f0f80d21
commit 388c645a8b
2 changed files with 5 additions and 4 deletions

View File

@ -3754,9 +3754,9 @@
$res = trim($str); if (!$res) return ''; $res = trim($str); if (!$res) return '';
if (get_pref($link, "STRIP_UNSAFE_TAGS", $owner) || $force_strip_tags) { // if (get_pref($link, "STRIP_UNSAFE_TAGS", $owner) || $force_strip_tags) {
$res = $purifier->purify($res); $res = $purifier->purify($res);
} // }
if (get_pref($link, "STRIP_IMAGES", $owner)) { if (get_pref($link, "STRIP_IMAGES", $owner)) {
$res = preg_replace('/<img[^>]+>/is', '', $res); $res = preg_replace('/<img[^>]+>/is', '', $res);

View File

@ -5,7 +5,8 @@
$subop = $_REQUEST["subop"]; $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", $profile_blacklist = array("ALLOW_DUPLICATE_POSTS", "PURGE_OLD_DAYS",
"PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP", "PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP",