mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 07:50:23 +01:00
Only mod of board can capcode
This commit is contained in:
parent
6ad5eededa
commit
71a101fd99
2
post.php
2
post.php
@ -382,7 +382,7 @@ if (isset($_POST['delete'])) {
|
||||
|
||||
$post['capcode'] = false;
|
||||
|
||||
if ($mod && preg_match('/^((.+) )?## (.+)$/', $post['name'], $matches)) {
|
||||
if ($mod && preg_match('/^((.+) )?## (.+)$/', $post['name'], $matches) && (in_array($board['uri'], $mod['boards']) or $mod['boards'][0] == '*')) {
|
||||
$name = $matches[2] != '' ? $matches[2] : $config['anonymous'];
|
||||
$cap = $matches[3];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user