From 16bcdbda69b04de381d64f4183f1b0a3d2b4b987 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 30 Nov 2005 20:16:47 +0000 Subject: - Improved the protocol whitelist code. --- modules/filter.module | 8 +++++--- modules/filter/filter.module | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/modules/filter.module b/modules/filter.module index 7b007c5ea..3a740595f 100644 --- a/modules/filter.module +++ b/modules/filter.module @@ -968,10 +968,9 @@ function filter_filter($op, $delta = 0, $format = -1, $text = '') { function _filter_html_settings($format) { $form['filter_html'] = array('#type' => 'fieldset', '#title' => t('HTML filter'), '#collapsible' => TRUE, '#collapsed' => TRUE); $form['filter_html']["filter_html_$format"] = array('#type' => 'radios', '#title' => t('Filter HTML tags'), '#default_value' => variable_get("filter_html_$format", FILTER_HTML_STRIP), '#options' => array(FILTER_HTML_STRIP => t('Strip disallowed tags'), FILTER_HTML_ESCAPE => t('Escape all tags')), '#description' => t('How to deal with HTML tags in user-contributed content. If set to "Strip disallowed tags", dangerous tags are removed (see below). If set to "Escape tags", all HTML is escaped and presented as it was typed.')); - $form['filter_html']["allowed_html_$format"] = array('#type' => 'textfield', '#title' => t('Allowed HTML tags'), '#default_value' => variable_get("allowed_html_$format", '