Fixed a bug that the unsigned email addresses have been shown as the email addresses of the signed keys
This commit is contained in:
parent
7899f69265
commit
72aa45202a
1 changed files with 3 additions and 1 deletions
|
@ -103,6 +103,7 @@ function verifyEmail($email)
|
||||||
|
|
||||||
$resulttable=_("The following UIDs were found your key:")."<br/><table border='1'><tr><td>#</td><td>"._("Name")."</td><td>"._("Email")."</td><td>Result</td>";
|
$resulttable=_("The following UIDs were found your key:")."<br/><table border='1'><tr><td>#</td><td>"._("Name")."</td><td>"._("Email")."</td><td>Result</td>";
|
||||||
$i=0;
|
$i=0;
|
||||||
|
$lastvalidemail="";
|
||||||
foreach(explode("\n", $gpg) as $line)
|
foreach(explode("\n", $gpg) as $line)
|
||||||
{
|
{
|
||||||
$resulttable.="<tr><td>".++$i."</td>";
|
$resulttable.="<tr><td>".++$i."</td>";
|
||||||
|
@ -214,6 +215,7 @@ function verifyEmail($email)
|
||||||
{
|
{
|
||||||
$nok++;
|
$nok++;
|
||||||
$resulttable.="<td>$rmessage</td>";
|
$resulttable.="<td>$rmessage</td>";
|
||||||
|
$lastvalidemail=$mail;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -253,7 +255,7 @@ function verifyEmail($email)
|
||||||
if($oldid == "0" && $_REQUEST['CSR'] != "")
|
if($oldid == "0" && $_REQUEST['CSR'] != "")
|
||||||
{
|
{
|
||||||
$query = "insert into `gpg` set `memid`='".$_SESSION['profile']['id']."',
|
$query = "insert into `gpg` set `memid`='".$_SESSION['profile']['id']."',
|
||||||
`email`='".mysql_real_escape_string($mail)."',
|
`email`='".mysql_real_escape_string($lastvalidemail)."',
|
||||||
`level`='1',
|
`level`='1',
|
||||||
`expires`='".mysql_real_escape_string($expires)."',
|
`expires`='".mysql_real_escape_string($expires)."',
|
||||||
`multiple`='".mysql_real_escape_string($multiple)."',
|
`multiple`='".mysql_real_escape_string($multiple)."',
|
||||||
|
|
Loading…
Reference in a new issue