interfaces: redirect after successful interface add

Otherwise reloading may repost the data which is unnecessary.
This commit is contained in:
Franco Fichtner 2023-09-22 09:54:06 +02:00
parent c4682b5536
commit ce189cb4ee

View File

@ -140,6 +140,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
write_config();
header(url_safe('Location: /interfaces_assign.php'));
exit;
}
} elseif (!empty($_POST['id']) && !empty($_POST['action']) && $_POST['action'] == 'del' & !empty($config['interfaces'][$_POST['id']]) ) {
// ** Delete interface **