summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Walker <mike@barrucadu.co.uk>2016-03-05 04:15:47 +0000
committerMichael Walker <mike@barrucadu.co.uk>2016-03-05 04:15:47 +0000
commitab22f78973f9162c1e068a733a984b7f495052d9 (patch)
tree517c64c2ab0cf92c7c34eea809e1ee959ac71dad
parentc58b85371b91dc521a4b43f1edca9595c12c0733 (diff)
parent1bacfecdfe9d6050452327bbdb9fe8894a0192d0 (diff)
Merge pull request #45 from 0xjove/boardlocking
Board lock workaround
-rw-r--r--post.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/post.php b/post.php
index 729170a7..99ef4850 100644
--- a/post.php
+++ b/post.php
@@ -17,7 +17,9 @@ if (get_magic_quotes_gpc()) {
$_POST = strip_array($_POST);
}
-if ((!isset($_POST['mod']) || !$_POST['mod']) && $config['board_locked']) {
+if ((!isset($_POST['mod']) || !$_POST['mod'])
+ && ($config['board_locked']===true
+ || (is_array($config['board_locked']) && in_array(strtolower($_POST['board']), $config['board_locked'])))){
error("Board is locked");
}