summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-08-19 14:55:17 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-08-19 14:55:17 +0000
commitfeb61eea867a51bf061c0a7067126539810c34ec (patch)
tree74b0784f91329728367641f82d640ac1f4fe6b2c /modules
parenteb5d7d2a27d893a2d4f2cf55d938971915b3b8be (diff)
downloadbrdo-feb61eea867a51bf061c0a7067126539810c34ec.tar.gz
brdo-feb61eea867a51bf061c0a7067126539810c34ec.tar.bz2
Fixing incorrect default value of allowed_html at one instance.
Diffstat (limited to 'modules')
-rw-r--r--modules/filter.module2
-rw-r--r--modules/filter/filter.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/filter.module b/modules/filter.module
index 20037a105..f1e4183b3 100644
--- a/modules/filter.module
+++ b/modules/filter.module
@@ -834,7 +834,7 @@ function _filter_html_settings($format) {
function _filter_html($text, $format) {
if (variable_get("filter_html_$format", FILTER_HTML_STRIP) == FILTER_HTML_STRIP) {
// Allow users to enter HTML, but filter it
- $text = strip_tags($text, variable_get("allowed_html_$format", ''));
+ $text = strip_tags($text, variable_get("allowed_html_$format", '<a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul>'));
if (variable_get("filter_style_$format", FILTER_STYLE_STRIP)) {
$text = preg_replace('/\Wstyle\s*=[^>]+?>/i', '>', $text);
}
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index 20037a105..f1e4183b3 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -834,7 +834,7 @@ function _filter_html_settings($format) {
function _filter_html($text, $format) {
if (variable_get("filter_html_$format", FILTER_HTML_STRIP) == FILTER_HTML_STRIP) {
// Allow users to enter HTML, but filter it
- $text = strip_tags($text, variable_get("allowed_html_$format", ''));
+ $text = strip_tags($text, variable_get("allowed_html_$format", '<a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul>'));
if (variable_get("filter_style_$format", FILTER_STYLE_STRIP)) {
$text = preg_replace('/\Wstyle\s*=[^>]+?>/i', '>', $text);
}