diff options
author | jim-p <jimp@pfsense.org> | 2013-06-18 14:42:52 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-06-18 14:43:25 -0400 |
commit | 40e6086ada6b73f6432b7ac93d4b376941028b09 (patch) | |
tree | 0c6340e7b300a234fb5bc332475c383946a0ec45 | |
parent | 7ddfa92266c9ad4bbeb343bb066575d6826c33c8 (diff) | |
download | pfsense-40e6086ada6b73f6432b7ac93d4b376941028b09.zip pfsense-40e6086ada6b73f6432b7ac93d4b376941028b09.tar.gz |
Allow removing CA and Cert entries that are blank/empty. Fixes #3005
-rw-r--r-- | usr/local/www/system_camanager.php | 2 | ||||
-rw-r--r-- | usr/local/www/system_certmanager.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_camanager.php b/usr/local/www/system_camanager.php index 0c122a0..254d4e2 100644 --- a/usr/local/www/system_camanager.php +++ b/usr/local/www/system_camanager.php @@ -75,7 +75,7 @@ if ($_POST['act']) if ($act == "del") { - if (!$a_ca[$id]) { + if (!isset($a_ca[$id])) { pfSenseHeader("system_camanager.php"); exit; } diff --git a/usr/local/www/system_certmanager.php b/usr/local/www/system_certmanager.php index b1e2fe1..05dab3c 100644 --- a/usr/local/www/system_certmanager.php +++ b/usr/local/www/system_certmanager.php @@ -91,7 +91,7 @@ if ($_POST['act']) if ($act == "del") { - if (!$a_cert[$id]) { + if (!isset($a_cert[$id])) { pfSenseHeader("system_certmanager.php"); exit; } |