diff --git a/www/gpg.php b/www/gpg.php index c8ce390..9bda61f 100644 --- a/www/gpg.php +++ b/www/gpg.php @@ -103,6 +103,7 @@ function verifyEmail($email) $resulttable=_("The following UIDs were found your key:")."
"; $i=0; + $lastvalidemail=""; foreach(explode("\n", $gpg) as $line) { $resulttable.=""; @@ -214,6 +215,7 @@ function verifyEmail($email) { $nok++; $resulttable.=""; + $lastvalidemail=$mail; } else { @@ -253,7 +255,7 @@ function verifyEmail($email) if($oldid == "0" && $_REQUEST['CSR'] != "") { $query = "insert into `gpg` set `memid`='".$_SESSION['profile']['id']."', - `email`='".mysql_real_escape_string($mail)."', + `email`='".mysql_real_escape_string($lastvalidemail)."', `level`='1', `expires`='".mysql_real_escape_string($expires)."', `multiple`='".mysql_real_escape_string($multiple)."',
#"._("Name").""._("Email")."Result
".++$i."$rmessage