From ce189cb4ee623d91202798f33d92f4e5e8bd35d6 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 22 Sep 2023 09:54:06 +0200 Subject: [PATCH] interfaces: redirect after successful interface add Otherwise reloading may repost the data which is unnecessary. --- src/www/interfaces_assign.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/www/interfaces_assign.php b/src/www/interfaces_assign.php index cfee2bd8f..754565f32 100644 --- a/src/www/interfaces_assign.php +++ b/src/www/interfaces_assign.php @@ -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 **