From 7f4268b62ddfb259e437dd0cb85fa41f5e98dff0 Mon Sep 17 00:00:00 2001 From: Steve Beaver Date: Mon, 13 Feb 2017 15:30:08 -0500 Subject: Revisions to GET/POST conversion limiting POSTs to save, apply, and delete functions - Diagnostics --- src/usr/local/www/diag_smart.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/usr/local/www/diag_smart.php') 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"); -- cgit v1.1