source code taken from cacert-20100329.tar.bz2
authorMarkus Warg <mw@it-sls.de>
Tue, 30 Mar 2010 15:16:42 +0000 (17:16 +0200)
committerMarkus Warg <mw@it-sls.de>
Tue, 30 Mar 2010 15:16:42 +0000 (17:16 +0200)
www/gpg.php

index 526bcad..345b559 100644 (file)
@@ -83,14 +83,13 @@ function verifyEmail($email)
        if($oldid == "0" && $CSR != "")
        {
                $debugkey = $gpgkey = clean_gpgcsr($CSR);
-               #$debugpg = $gpg = trim(`echo "$gpgkey"|gpg --with-colons --homedir /tmp 2>&1`);
-
-                $tnam = tempnam('/tmp/', '__gpg');
-                $fp = fopen($tnam, 'w');
-                fwrite($fp, $gpgkey);
-                fclose($fp);
-                $debugpg = $gpg = trim(`gpg --with-colons --homedir /tmp 2>&1 < $tnam`);
-                unlink($tnam);
+
+               $tnam = tempnam('/tmp/', '__gpg');
+               $fp = fopen($tnam, 'w');
+               fwrite($fp, $gpgkey);
+               fclose($fp);
+               $debugpg = $gpg = trim(`gpg --with-colons --homedir /tmp 2>&1 < $tnam`);
+               unlink($tnam);
 
                $lines = "";
                $gpgarr = explode("\n", $gpg);