summaryrefslogtreecommitdiff
path: root/includes/function.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/function.inc')
-rw-r--r--includes/function.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/includes/function.inc b/includes/function.inc
index adcb4c518..71276e780 100644
--- a/includes/function.inc
+++ b/includes/function.inc
@@ -17,8 +17,14 @@ function discussion_score($comment) {
return (strpos($value, ".")) ? substr($value ."00", 0, 4) : $value .".00";
}
-function check_field($message) {
- return str_replace("\"", """, stripslashes($message));
+function check_textfield($message) {
+ global $allowed_html;
+ return strip_tags(str_replace("\"", """, stripslashes($message)), $allowed_html);
+}
+
+function check_textarea($message) {
+ global $allowed_html;
+ return htmlspecialchars(strip_tags(stripslashes($message), $allowed_html));
}
function check_input($message) {