From 6c2e9fb5dc29c53e2daa980272789b79827f6a22 Mon Sep 17 00:00:00 2001 From: Markus Warg Date: Mon, 29 Mar 2010 11:37:44 +0200 Subject: patch from Phillip (Mantis #814) https://bugs.cacert.org/view.php?id=814 --- www/gpg.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'www') diff --git a/www/gpg.php b/www/gpg.php index f97966f..894f298 100644 --- a/www/gpg.php +++ b/www/gpg.php @@ -104,11 +104,25 @@ function verifyEmail($email) $resulttable=_("The following UIDs were found in your key:")."
"; $i=0; $lastvalidemail=""; + $npubs=0; foreach(explode("\n", $gpg) as $line) { $bits = explode(":", $line); $resulttable.=""; $name = $comment = ""; + if($bits[0] == "pub") + { + $npubs++; + } + if($npubs>1) + { + showheader(_("Welcome to CAcert.org")); + echo ""._("Please upload only one key at a time.").""; + unset($_REQUEST['process']); + $id = $oldid; + unset($oldid); + exit(); + } if($bits[0] == "pub" && (!$keyid || !$when)) { $keyid = $bits[4]; -- cgit v1.2.1
#"._("Name").""._("Email")."Result
".++$i."