summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-11-24 15:10:36 +0000
committerDries Buytaert <dries@buytaert.net>2001-11-24 15:10:36 +0000
commiteb7c5f60b965bb1385a4b209041ae99181fae3f5 (patch)
treeda0ac82db614621e62fc07a5c1ba0db76476f83f /includes/common.inc
parentcd40123540f6b76e93fe3e4d87edba5aafc05018 (diff)
downloadbrdo-eb7c5f60b965bb1385a4b209041ae99181fae3f5.tar.gz
brdo-eb7c5f60b965bb1385a4b209041ae99181fae3f5.tar.bz2
- 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.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc9
1 files changed, 7 insertions, 2 deletions
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) {