Skip to content
Snippets Groups Projects
Commit 296fb7b9 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- See whether this fixes your problem and if it does not, take a look
  at what I tried to do. :)
parent b87d482b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment