Commit 9b0ed8f8 authored by Franco Fichtner's avatar Franco Fichtner

www: diag* updates for #1168

parent 5344b423
...@@ -73,8 +73,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -73,8 +73,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
break; break;
} }
header("Location: diag_ipsec.php"); header(url_safe('Location: /diag_ipsec.php'));
exit(0); exit;
} }
$ipsec_status = json_decode(configd_run("ipsec list status"), true); $ipsec_status = json_decode(configd_run("ipsec list status"), true);
......
...@@ -250,7 +250,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -250,7 +250,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
stop_capture(); stop_capture();
} elseif (!empty($pconfig['remove'])) { } elseif (!empty($pconfig['remove'])) {
@unlink('/tmp/packetcapture.cap'); @unlink('/tmp/packetcapture.cap');
header("Location: diag_packet_capture.php"); header(url_safe('Location: /diag_packet_capture.php'));
exit; exit;
} }
} }
......
...@@ -60,13 +60,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -60,13 +60,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$delEntry = escapeshellarg($_REQUEST['address']); $delEntry = escapeshellarg($_REQUEST['address']);
$delTable = escapeshellarg($tablename); $delTable = escapeshellarg($tablename);
configd_run("filter delete table {$delTable} {$delEntry}"); configd_run("filter delete table {$delTable} {$delEntry}");
header("Location: diag_tables.php?tablename=" . $tablename); header(url_safe('Location: /diag_tables.php?tablename=%s', array($tablename)));
exit; exit;
} }
} elseif (isset($_POST['act']) && $_POST['act'] == 'flush') { } elseif (isset($_POST['act']) && $_POST['act'] == 'flush') {
$delTable = escapeshellarg($tablename); $delTable = escapeshellarg($tablename);
configd_run("filter delete table {$delTable} ALL"); configd_run("filter delete table {$delTable} ALL");
header("Location: diag_tables.php?tablename=" . $tablename); header(url_safe('Location: /diag_tables.php?tablename=%s', array($tablename)));
exit; exit;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment