mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 18:24:29 +01:00
redirect after posting IP address note so they cannot repost with F5
This commit is contained in:
parent
cbcf39dfe7
commit
fb4f0672d7
4
mod.php
4
mod.php
@ -2110,8 +2110,9 @@
|
||||
markup($_POST['note']);
|
||||
$query->bindValue(':body', $_POST['note']);
|
||||
$query->execute() or error(db_error($query));
|
||||
}
|
||||
|
||||
header('Location: ?/IP/' . $ip, true, $config['redirect_http']);
|
||||
} else {
|
||||
$body = '';
|
||||
$boards = listBoards();
|
||||
foreach($boards as &$_board) {
|
||||
@ -2287,6 +2288,7 @@
|
||||
'mod'=>true
|
||||
)
|
||||
);
|
||||
}
|
||||
} else {
|
||||
error($config['error']['404']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user