From 5fb307f5bf4d39a4492671ac6223bd65492a1b16 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 25 Mar 2001 16:42:52 +0000 Subject: - refactoring, refactoring, refactoring --- includes/function.inc | 8 ++++---- includes/hostname.conf | 2 +- includes/theme.inc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'includes') diff --git a/includes/function.inc b/includes/function.inc index eefbda602..0080a8432 100644 --- a/includes/function.inc +++ b/includes/function.inc @@ -2,7 +2,6 @@ $na = "na"; - function check_textfield($message) { return strip_tags(str_replace("\"", """, stripslashes($message))); } @@ -17,7 +16,8 @@ function check_export($message) { function check_textarea($message) { global $allowed_html; - return htmlspecialchars(strip_tags(stripslashes($message), $allowed_html)); + return strip_tags(stripslashes($message), $allowed_html); + // return htmlspecialchars(strip_tags(stripslashes($message), $allowed_html)); } function check_input($message) { @@ -102,9 +102,9 @@ function format_tag($link, $text) { function format_text($text) { - $src = array("/(<\/?)(\w+)([^>]*>)/e", // convert HTML to lower case + $src = array( // "/(<\/?)(\w+)([^>]*>)/e", // convert HTML to lower case "/\[(([^\|]*?)(\|([^\|]*?))?)\]/e"); // [link|description] - $dst = array("'\\1'. strtolower('\\2') .'\\3'", // convert HTML to lower case + $dst = array( // "'\\1'. strtolower('\\2') .'\\3'", // convert HTML to lower case format_tag('\\2', '\\4')); // [link|description] return preg_replace($src, $dst, $text); diff --git a/includes/hostname.conf b/includes/hostname.conf index 764c1f52b..6b2373b56 100644 --- a/includes/hostname.conf +++ b/includes/hostname.conf @@ -31,7 +31,7 @@ $comment_votes = array("none" => "none", # # Allowed HTML tags: # -$allowed_html = "