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']);
$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']);
}