summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/function.inc8
-rw-r--r--includes/hostname.conf2
-rw-r--r--includes/theme.inc2
3 files changed, 6 insertions, 6 deletions
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 = "<I>na</I>";
-
function check_textfield($message) {
return strip_tags(str_replace("\"", "&quot;", 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 = "<A><B><BLOCKQUOTE><DD><DL><DT><EM><HR><I><LI><SMALL><OL><U><UL>";
+$allowed_html = "<A><B><BLOCKQUOTE><CODE><DD><DL><DT><EM><HR><I><LI><SMALL><OL><U><UL>";
#
# Name for anonymous users:
diff --git a/includes/theme.inc b/includes/theme.inc
index 6182f8936..3ac8ded06 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -109,7 +109,7 @@ function theme_moderation_results($theme, $node) {
$output .= format_username($account->userid) ." voted '". user_get($account, "history", "n$node->nid") ."'.<BR>";
}
- $theme->box(t("Moderation results"), ($output ? $output : t("This story has not been moderated yet.")));
+ $theme->box(t("Moderation results"), ($output ? $output : t("This node has not been moderated yet.")));
}
}