Commit 6aaba834 authored by Franco Fichtner's avatar Franco Fichtner

www: url_safe() for status pages #1168

parent c378d413
......@@ -43,18 +43,18 @@ if ($_POST['reloadfilter']) {
// only try to sync when hasync is configured
configd_run("filter sync reload");
}
header("Location: status_filter_reload.php");
header(url_safe('Location: /status_filter_reload.php'));
exit;
}
if ($_POST['syncfilter']) {
configd_run("filter sync");
header("Location: status_filter_reload.php");
header(url_safe('Location: /status_filter_reload.php'));
exit;
}
include("head.inc");
?>
?>
<body>
<script type="text/javascript">
$( document ).ready(function() {
......
......@@ -93,14 +93,15 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
exit;
}
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
header("Location: status_graph.php");
header(url_safe('Location: /status_graph.php'));
exit;
}
legacy_html_escape_form_data($pconfig);
include("head.inc");
?>
?>
<body>
<?php include("fbegin.inc"); ?>
......
......@@ -44,7 +44,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} else {
interface_configure($interface);
}
header("Location: status_interfaces.php");
header(url_safe('Location: /status_interfaces.php'));
exit;
}
}
......
......@@ -48,7 +48,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
relayd_configure();
filter_configure();
clear_subsystem_dirty('loadbalancer');
header("Location: status_lb_pool.php");
header(url_safe('Location: /status_lb_pool.php'));
exit;
} else {
// change pool configuration (enabled/disabled servers)
......@@ -68,7 +68,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
mark_subsystem_dirty('loadbalancer');
write_config("Updated load balancer pools via status screen.");
}
header("Location: status_lb_pool.php");
header(url_safe('Location: /status_lb_pool.php'));
exit;
}
}
......
......@@ -48,7 +48,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
relayd_configure();
filter_configure();
clear_subsystem_dirty('loadbalancer');
header("Location: status_lb_vs.php");
header(url_safe('Location: /status_lb_vs.php'));
exit;
}
}
......
......@@ -35,7 +35,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (!empty($_POST['clear'])) {
upnp_stop();
upnp_start();
header("Location: status_upnp.php");
header(url_safe('Location: /status_upnp.php'));
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