summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard "Ted" Fröhlich <ted@convey.de>2018-05-16 15:32:22 +0200
committerGitHub <noreply@github.com>2018-05-16 15:32:22 +0200
commita2ed046439e1047867aba62686d43d2e5fb9af44 (patch)
treea186bfe9c7e3cd94a4d8f9f017da80afe2016fd2
parent000b17a9a909737930d59dee82c40e7eab2fa337 (diff)
parent67062a789285c7096e976a7ae7543a569bfc8678 (diff)
downloadcacert-devel-a2ed046439e1047867aba62686d43d2e5fb9af44.tar.gz
cacert-devel-a2ed046439e1047867aba62686d43d2e5fb9af44.tar.xz
cacert-devel-a2ed046439e1047867aba62686d43d2e5fb9af44.zip
Merge pull request #4 from GuKKDevel/bug-1431
testing for photo-ids
-rw-r--r--www/gpg.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/www/gpg.php b/www/gpg.php
index cb72475..3b87009 100644
--- a/www/gpg.php
+++ b/www/gpg.php
@@ -128,6 +128,8 @@ function verifyEmail($email)
$lines = "";
$gpgarr = explode("\n", trim($gpg));
+ $containsphoto = FALSE;
+
foreach($gpgarr as $line)
{
#echo "Line[]: $line <br/>\n";
@@ -137,7 +139,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;