diff options
author | jim-p <jimp@pfsense.org> | 2011-02-16 13:04:08 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-02-16 13:04:08 -0500 |
commit | ed187b41a21aa307556995f58e4eb24479f70bb0 (patch) | |
tree | 9bf212b1cdead99c0b7f4931035b6abab13c598d /usr/local | |
parent | 72377228a61220f1dbe62afb81e0dc7757868ea5 (diff) | |
download | pfsense-ed187b41a21aa307556995f58e4eb24479f70bb0.zip pfsense-ed187b41a21aa307556995f58e4eb24479f70bb0.tar.gz |
Change this form to a POST instead of using GET with button inputs. For some reason using the GET method was causing things to be invoked twice, which led to two concurrent XMLRPC syncs, which can cause issues.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/status_filter_reload.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/status_filter_reload.php b/usr/local/www/status_filter_reload.php index d1e54a9..aa6348b 100644 --- a/usr/local/www/status_filter_reload.php +++ b/usr/local/www/status_filter_reload.php @@ -50,12 +50,12 @@ if($_GET['getstatus']) { echo "|{$status}|"; exit; } -if($_GET['reloadfilter']) { +if($_POST['reloadfilter']) { send_event("filter reload"); header("Location: status_filter_reload.php"); exit; } -if($_GET['syncfilter']) { +if($_POST['syncfilter']) { send_event("filter sync"); header("Location: status_filter_reload.php"); exit; @@ -68,11 +68,13 @@ include("head.inc"); <?php include("fbegin.inc"); ?> <br/> -<a href="/status_filter_reload.php?reloadfilter=true"><input type="button" value="Reload Filter" id="reloadfilter"></a> +<form action="status_filter_reload.php" method="POST" name="filter"> +<input type="submit" value="Reload Filter" name="reloadfilter" id="reloadfilter"> <?php if (is_array($config["installedpackages"]["carpsettings"]["config"][0]) && $config["installedpackages"]["carpsettings"]["config"][0]["pfsyncpeerip"] != ""): ?> -<a href="/status_filter_reload.php?syncfilter=true"><input type="button" value="Force Config Sync" id="syncfilter"></a> +<input type="submit" value="Force Config Sync" name="syncfilter" id="syncfilter"> <? endif; ?> +</form> <br/><br/><br/> <div id="status" name="status" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000;"> <?php echo $status; ?> |