From eb7c5f60b965bb1385a4b209041ae99181fae3f5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 24 Nov 2001 15:10:36 +0000 Subject: - Bugfix: when updating a book page, the name of the author did not change. - Bugfix: the "Edit comments" part of the node administration pages did not display the correct comments. - Bugfix: somethimes, update in a book page would mess up the book. - Improvement: when "node administrators" update a book page through the "update this book page"-link (like regular users do), their update will be subject to moderation. - Improvement: made some intermediate changes to the filter mechanism. Needs more work. --- includes/common.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index fabee01bf..c1ebe193a 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -119,11 +119,16 @@ function check_query($text) { return addslashes(stripslashes($text)); } -function check_input($text) { +function filter($text) { foreach (module_list() as $name) { if (module_hook($name, "filter")) $text = module_invoke($name, "filter", $text); } - return addslashes(stripslashes(substr($text, 0, variable_get("max_input_size", 10000)))); + + return $text; +} + +function check_input($text) { + return check_query($text); } function check_output($text, $nl2br = 0) { -- cgit v1.2.3