1
0
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:
Savetheinternet 2011-07-30 15:42:28 +10:00
parent cbcf39dfe7
commit fb4f0672d7

View File

@ -2110,8 +2110,9 @@
markup($_POST['note']); markup($_POST['note']);
$query->bindValue(':body', $_POST['note']); $query->bindValue(':body', $_POST['note']);
$query->execute() or error(db_error($query)); $query->execute() or error(db_error($query));
}
header('Location: ?/IP/' . $ip, true, $config['redirect_http']);
} else {
$body = ''; $body = '';
$boards = listBoards(); $boards = listBoards();
foreach($boards as &$_board) { foreach($boards as &$_board) {
@ -2287,6 +2288,7 @@
'mod'=>true 'mod'=>true
) )
); );
}
} else { } else {
error($config['error']['404']); error($config['error']['404']);
} }