mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
interfaces: redirect after successful interface add
Otherwise reloading may repost the data which is unnecessary.
This commit is contained in:
parent
c4682b5536
commit
ce189cb4ee
@ -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 **
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user