From: Andrew Dolgov Date: Wed, 24 Oct 2007 06:50:10 +0000 (+0100) Subject: drop tagwall from trunk X-Git-Tag: 1.2.17~55 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7e1265ede7c82999d2def9e001422c41aa48afc0;p=tt-rss.git drop tagwall from trunk --- diff --git a/config.php-dist b/config.php-dist index b9314371..05ec08ea 100644 --- a/config.php-dist +++ b/config.php-dist @@ -163,13 +163,6 @@ // These two options enable SMTP authentication when sending // digests. Require DIGEST_SMTP_HOST. - define('ENABLE_TAGWALL', true); - // Disable this if you are having troubles with Tagwall library which - // is used to strip potentially unsafe content from RSS articles. When - // disabled, simpler version of processing will be used when needed. - // Try disabling when having problems with showing articles and/or - // loading feeds. - define('CONFIG_VERSION', 10); // Expected config version. Please update this option in config.php // if necessary (after migrating all new options from this file). diff --git a/functions.php b/functions.php index 7de4ed1b..15f6843b 100644 --- a/functions.php +++ b/functions.php @@ -73,14 +73,6 @@ require_once 'magpierss/rss_utils.inc'; } - if (ENABLE_TAGWALL) { - include_once "tw/tw-config.php"; - include_once "tw/tw.php"; - include_once TW_SETUP . "paranoya.php"; - - $tw_parser = new twParser(); - } - function _debug($msg) { $ts = strftime("%H:%M:%S", time()); print "[$ts] $msg\n"; @@ -3172,16 +3164,8 @@ if (get_pref($link, "STRIP_UNSAFE_TAGS") || $force_strip_tags) { - if (ENABLE_TAGWALL) { - global $tw_parser; - global $tw_paranoya_setup; - - $res = $tw_parser->strip_tags($res, $tw_paranoya_setup); - } else { - - $res = strip_tags_long($res, "


"); - - } + $res = strip_tags_long($res, + "