summaryrefslogtreecommitdiff
path: root/www/gpg.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/gpg.php')
-rw-r--r--www/gpg.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/www/gpg.php b/www/gpg.php
index 241df30..d1c67e0 100644
--- a/www/gpg.php
+++ b/www/gpg.php
@@ -83,8 +83,15 @@ function verifyEmail($email)
$state=0;
if($oldid == "0" && $CSR != "")
{
- $err = runCommand('mktemp --directory /tmp/cacert_gpg.XXXXXXXXXX', $tmpdir);
- if (!err && $tmpdir)
+ $err = runCommand('mktemp --directory /tmp/cacert_gpg.XXXXXXXXXX',
+ "",
+ $tmpdir);
+ if (!$tmpdir)
+ {
+ $err = true;
+ }
+
+ if (!err)
{
$err = runCommand("gpg --with-colons --homedir $tmpdir 2>&1",
clean_gpgcsr($CSR),