From 296fb7b93a74f2fb576a53a63722519f20a6e867 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 13 Apr 2001 13:42:43 +0000 Subject: - See whether this fixes your problem and if it does not, take a look at what I tried to do. :) --- includes/function.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/function.inc') diff --git a/includes/function.inc b/includes/function.inc index 00a4a14f7..8a2a73604 100644 --- a/includes/function.inc +++ b/includes/function.inc @@ -20,8 +20,8 @@ function check_textarea($message) { } function check_input($message) { - global $allowed_html, $submission_size; - return strip_tags(addslashes(stripslashes(substr($message, 0, $submission_size))), $allowed_html); + global $allowed_html; + return strip_tags(addslashes(stripslashes(substr($message, 0, variable_get(max_input_size, 10000)))), $allowed_html); } function check_code($message) { -- cgit v1.2.3