summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_smart.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-02-13 15:30:08 -0500
committerSteve Beaver <sbeaver@netgate.com>2017-02-13 15:30:08 -0500
commit7f4268b62ddfb259e437dd0cb85fa41f5e98dff0 (patch)
tree0c73dfca4376a835f53886dab512b88905715f39 /src/usr/local/www/diag_smart.php
parent84147b7ba599508d9ac089a28664145860dba8e5 (diff)
downloadpfsense-7f4268b62ddfb259e437dd0cb85fa41f5e98dff0.zip
pfsense-7f4268b62ddfb259e437dd0cb85fa41f5e98dff0.tar.gz
Revisions to GET/POST conversion limiting POSTs to save, apply, and delete functions - Diagnostics
Diffstat (limited to 'src/usr/local/www/diag_smart.php')
-rw-r--r--src/usr/local/www/diag_smart.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_smart.php b/src/usr/local/www/diag_smart.php
index 97f54fa..49674c2 100644
--- a/src/usr/local/www/diag_smart.php
+++ b/src/usr/local/www/diag_smart.php
@@ -31,7 +31,7 @@ require_once("guiconfig.inc");
// What page, aka. action is being wanted
// If they "get" a page but don't pass all arguments, smartctl will throw an error
-$action = (isset($_POST['action']) ? $_POST['action'] : $_GET['action']);
+$action = $_POST['action'];
$pgtitle = array(gettext("Diagnostics"), gettext("S.M.A.R.T. Status"));
$pglinks = array("", "@self", "@self");
@@ -41,6 +41,7 @@ if ($action != 'config') {
} else {
$pgtitle[] = gettext('Config');
}
+
$smartctl = "/usr/local/sbin/smartctl";
$valid_test_types = array("offline", "short", "long", "conveyance");
OpenPOWER on IntegriCloud