summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/gpg.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/www/gpg.php b/www/gpg.php
index f7dfde8..4246adc 100644
--- a/www/gpg.php
+++ b/www/gpg.php
@@ -516,6 +516,8 @@ function verifyEmail($email)
$lines = "";
$gpgarr = explode("\n", trim($gpg));
+ $containsphoto = FALSE;
+
foreach($gpgarr as $line)
{
#echo "Line[]: $line <br/>\n";
@@ -525,7 +527,23 @@ function verifyEmail($email)
$lines .= "\n";
$lines .= $line;
}
+ elseif(substr($line, 0, 3) == "uat")
+ {
+ $containsphoto = TRUE;
+ }
+ }
+
+ if ($containsphoto)
+ {
+ showheader(_("Welcome to CAcert.org"));
+
+ echo "<p style='color:#ff0000'>"._("There is an image/photo in your key.")."</p>";
+ unset($_REQUEST['process']);
+ $id = $oldid;
+ unset($oldid);
+ exit();
}
+
$gpg = $lines;
$expires = 0;
$nerr=0; $nok=0;