summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2014-06-15 18:21:42 +0200
committerBenny Baumann <BenBE@geshi.org>2014-06-15 18:21:42 +0200
commit7efed7ae3f3d0f08c8ffe18c8f1fc863d1fd08b4 (patch)
tree9a70edc253af9fee82dafed6bc0dfdc90c0c6ba0
parent884770fda3ea50dfd171532009813f381da6fee4 (diff)
parent53c84b22d3449f0f233b02d650f1ed3bb58a04bc (diff)
downloadcacert-devel-7efed7ae3f3d0f08c8ffe18c8f1fc863d1fd08b4.tar.gz
cacert-devel-7efed7ae3f3d0f08c8ffe18c8f1fc863d1fd08b4.tar.xz
cacert-devel-7efed7ae3f3d0f08c8ffe18c8f1fc863d1fd08b4.zip
Merge branch 'bug-807' into testserver-stable
-rw-r--r--includes/account.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/includes/account.php b/includes/account.php
index 23fe501..0285aa9 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -905,7 +905,8 @@ function buildSubjectFromSession() {
`rootcert`='".intval($row['rootcert'])."',
`type`='".intval($row['type'])."',
`pkhash`='".mysql_real_escape_string($row['pkhash'])."',
- `description`='".mysql_real_escape_string($row['description'])."'";
+ `description`='".mysql_real_escape_string($row['description'])."',
+ `md`='".HashAlgorithms::clean($row['md'])."'";
mysql_query($query);
$newid = mysql_insert_id();
$newfile=generatecertpath("csr","server",$newid);
@@ -1085,7 +1086,8 @@ function buildSubjectFromSession() {
`disablelogin`='".intval($row['disablelogin'])."',
`codesign`='".intval($row['codesign'])."',
`rootcert`='".intval($row['rootcert'])."',
- `description`='".mysql_real_escape_string($row['description'])."'";
+ `description`='".mysql_real_escape_string($row['description'])."',
+ `md`='".HashAlgorithms::clean($row['md'])."'";
mysql_query($query);
$newid = mysql_insert_id();
$newfile=generatecertpath("csr","client",$newid);
@@ -1736,7 +1738,8 @@ function buildSubjectFromSession() {
`modified`=NOW(),
`codesign`='".intval($row['codesign'])."',
`rootcert`='".intval($row['rootcert'])."',
- `description`='".mysql_real_escape_string($row['description'])."'";
+ `description`='".mysql_real_escape_string($row['description'])."',
+ `md`='".HashAlgorithms::clean($row['md'])."'";
mysql_query($query);
$newid = mysql_insert_id();
$newfile=generatecertpath("csr","orgclient",$newid);
@@ -2088,7 +2091,8 @@ function buildSubjectFromSession() {
`subject`='".mysql_real_escape_string($row['subject'])."',
`type`='".intval($row['type'])."',
`rootcert`='".intval($row['rootcert'])."',
- `description`='".mysql_real_escape_string($row['description'])."'";
+ `description`='".mysql_real_escape_string($row['description'])."',
+ `md`='".HashAlgorithms::clean($row['md'])."'";
mysql_query($query);
$newid = mysql_insert_id();
//echo "NewID: $newid<br/>\n";