diff options
Diffstat (limited to 'includes/function.inc')
-rw-r--r-- | includes/function.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/function.inc b/includes/function.inc index 0215955d0..3c3cd3afe 100644 --- a/includes/function.inc +++ b/includes/function.inc @@ -23,8 +23,8 @@ function check_field($message) { } function check_input($message) { - global $allowed_html; - return strip_tags(addslashes($message), $allowed_html); + global $allowed_html, $submission_size; + return strip_tags(addslashes(substr($message, 0, $submission_size)), $allowed_html); } function check_output($message, $nl2br = 0) { |