diff --git a/includes/account.php b/includes/account.php index ce65077..086ddec 100644 --- a/includes/account.php +++ b/includes/account.php @@ -199,17 +199,15 @@ $addys = array(); $defaultemail = ""; - if($_SESSION['_config']['incname'] <= 0 || $_SESSION['_config']['incname'] > 5) + if($_SESSION['_config']['incname'] <= 0 || $_SESSION['_config']['incname'] > 4) $csrsubject = "/CN=CAcert WoT User"; if($_SESSION['_config']['incname'] == 1) - $csrsubject = "/CN=".$_SESSION['profile']['fname']; - if($_SESSION['_config']['incname'] == 2) $csrsubject = "/CN=".$_SESSION['profile']['fname']." ".$_SESSION['profile']['lname']; - if($_SESSION['_config']['incname'] == 3) + if($_SESSION['_config']['incname'] == 2) $csrsubject = "/CN = ".$_SESSION['profile']['fname']." ".$_SESSION['profile']['mname']." ".$_SESSION['profile']['lname']."\n"; - if($_SESSION['_config']['incname'] == 4) + if($_SESSION['_config']['incname'] == 3) $csrsubject = "/CN = ".$_SESSION['profile']['fname']." ".$_SESSION['profile']['lname']." ".$_SESSION['profile']['suffix']."\n"; - if($_SESSION['_config']['incname'] == 5) + if($_SESSION['_config']['incname'] == 4) $csrsubject = "/CN = ".$_SESSION['profile']['fname']." ".$_SESSION['profile']['mname']." ".$_SESSION['profile']['lname']." ".$_SESSION['profile']['suffix']."\n"; if(is_array($_SESSION['_config']['addid'])) foreach($_SESSION['_config']['addid'] as $id) @@ -871,7 +869,7 @@ $org = $_SESSION['_config']['row']; if($_POST['keytype'] == "NS") { - if($_POST['SPKAC'] == "" || strlen($_POST['SPKAC']) < 512) + if($_POST['SPKAC'] == "" || strlen($_POST['SPKAC']) < 128) { $id = 17; showheader(_("My CAcert.org Account!")); diff --git a/includes/account_stuff.php b/includes/account_stuff.php index e7e2c7d..a3e5968 100644 --- a/includes/account_stuff.php +++ b/includes/account_stuff.php @@ -100,8 +100,8 @@ ?> - ?> <?=$title?> +