From c7e24e56f7a29e6af7d8ce12aed312c0219c4bc6 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 23 Apr 2009 19:19:58 +0000 Subject: [PATCH] Fixed a hole Added OCSP renewal support --- includes/account.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/account.php b/includes/account.php index 9daa2c9..3b2c36e 100644 --- a/includes/account.php +++ b/includes/account.php @@ -1678,7 +1678,7 @@ $csrsubject .= "/subjectAltName=".$SAN; $type=""; - if($_REQUEST["ocspcert"]!="") $type="8"; + if($_REQUEST["ocspcert"]!="" && $_SESSION['profile']['admin'] == 1) $type="8"; if($_SESSION['_config']['rowid']['0'] > 0) { @@ -1761,6 +1761,7 @@ `created`='".$row['created']."', `modified`=NOW(), `subject`='".$row['subject']."', + `type`='".$row['type']."', `rootcert`='".$row['rootcert']."'"; mysql_query($query); $newid = mysql_insert_id();