aboutsummaryrefslogtreecommitdiff
path: root/scripts/blocklist.php
diff options
context:
space:
mode:
authorpmichaud <pmichaud@524c5546-5005-0410-9a3e-e25e191bd360>2007-01-29 19:10:22 +0000
committerpmichaud <pmichaud@524c5546-5005-0410-9a3e-e25e191bd360>2007-01-29 19:10:22 +0000
commit0e21d12cb62ef9f1ff27192dab06c7aa7bc696d9 (patch)
tree2b822339097138d955672fd5b9ce5068fe35d3db /scripts/blocklist.php
parent23a84a18a73ba0eed4446deef0ea76158ff4e26f (diff)
downloadpmwiki.svn-0e21d12cb62ef9f1ff27192dab06c7aa7bc696d9.tar.bz2
Change blocklist to check all posted fields by default.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@1858 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/blocklist.php')
-rw-r--r--scripts/blocklist.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/blocklist.php b/scripts/blocklist.php
index 9d52c488..b6d641f0 100644
--- a/scripts/blocklist.php
+++ b/scripts/blocklist.php
@@ -71,8 +71,10 @@ if ($EnableBlocklist >= 10) {
## check for blocks on anything being posted through the normal
## "update a page cycle"
array_unshift($EditFunctions, 'CheckBlocklist');
-function CheckBlocklist($pagename, &$page, &$new)
- { if (isset($_POST['text'])) Blocklist($pagename, $_POST['text']); }
+function CheckBlocklist($pagename, &$page, &$new) {
+ $ptext = implode('', @$_POST);
+ if (@$ptext) Blocklist($pagename, $ptext);
+}
## Blocklist is the function that does all of the work of