1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-18 03:37:35 +01:00

Fix redirect with board config editor (raw php)

This commit is contained in:
Michael Foster 2013-08-03 06:27:13 -04:00
parent a3a490c7f2
commit c2866dd401

View File

@ -1958,7 +1958,7 @@ function mod_config($board_config = false) {
if (!$readonly && isset($_POST['code'])) {
$code = $_POST['code'];
file_put_contents($config_file, $code);
header('Location: ?/config', true, $config['redirect_http']);
header('Location: ?/config' . ($board_config ? '/' . $board_config : ''), true, $config['redirect_http']);
return;
}