diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-08-27 11:47:24 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-08-27 11:47:51 -0400 |
commit | b8f22f61dd6f475a2c7831e9849ff85bd5eb2736 (patch) | |
tree | 0a8b081a3d19d960fcb4ee8ee3aadf7ecb64af06 /src/usr/local/www/system_certmanager.php | |
parent | 7295f5d0ce173b756e81d08b0a56df1775cc0897 (diff) | |
download | pfsense-b8f22f61dd6f475a2c7831e9849ff85bd5eb2736.zip pfsense-b8f22f61dd6f475a2c7831e9849ff85bd5eb2736.tar.gz |
arrray type changed to associative for country codes
Diffstat (limited to 'src/usr/local/www/system_certmanager.php')
-rw-r--r-- | src/usr/local/www/system_certmanager.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/usr/local/www/system_certmanager.php b/src/usr/local/www/system_certmanager.php index 43150c2..f9f2702 100644 --- a/src/usr/local/www/system_certmanager.php +++ b/src/usr/local/www/system_certmanager.php @@ -519,9 +519,11 @@ display_top_tabs($tab_array); $dn_cc = array(); if (file_exists("/etc/ca_countries")){ $dn_cc_file=file("/etc/ca_countries"); - foreach($dn_cc_file as $line) - if (preg_match('/^(\S*)\s(.*)$/', $line, $matches)) - array_push($dn_cc, $matches[1]); + foreach($dn_cc_file as $line) { + if (preg_match('/^(\S*)\s(.*)$/', $line, $matches)) { + $dn_cc[$matches[1]] = $matches[1]; + } + } } if (!($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors))) @@ -581,7 +583,7 @@ foreach($a_cert as $i => $cert): <?=$subj?> <br /> <small> - <?=gettext("Valid From")?>: <b><?=$startdate ?></b>, <?=gettext("Valid Until")?>: <b><?=$enddate ?></b> + <?=gettext("Valid From")?>: <b><?=$startdate ?></b><br /><?=gettext("Valid Until")?>: <b><?=$enddate ?></b> </small> </td> <td> |