summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2013-08-07 00:39:46 +0200
committerMichael Tänzer <neo@nhng.de>2013-08-07 00:39:46 +0200
commit8fa82f2cbd17e3f32a537cd405b01d6b6c623ea0 (patch)
treea14c9d1171d0f486b4ada42042c66a1b921ad034 /www
parenta82f507306a9eba8a9f5dff82d2091dbd29edf71 (diff)
downloadcacert-devel-8fa82f2cbd17e3f32a537cd405b01d6b6c623ea0.tar.gz
cacert-devel-8fa82f2cbd17e3f32a537cd405b01d6b6c623ea0.tar.xz
cacert-devel-8fa82f2cbd17e3f32a537cd405b01d6b6c623ea0.zip
bug 1199: Remove left over debugging code
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'www')
-rw-r--r--www/gpg.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/www/gpg.php b/www/gpg.php
index 317072c..c3ba98d 100644
--- a/www/gpg.php
+++ b/www/gpg.php
@@ -82,13 +82,13 @@ function verifyEmail($email)
$state=0;
if($oldid == "0" && $CSR != "")
{
- $debugkey = $gpgkey = clean_gpgcsr($CSR);
+ $gpgkey = clean_gpgcsr($CSR);
$tnam = tempnam('/tmp/', '__gpg');
$fp = fopen($tnam, 'w');
fwrite($fp, $gpgkey);
fclose($fp);
- $debugpg = $gpg = trim(`gpg --with-colons --homedir /tmp 2>&1 < $tnam`);
+ $gpg = trim(`gpg --with-colons --homedir /tmp 2>&1 < $tnam`);
unlink($tnam);
$lines = "";
@@ -260,7 +260,6 @@ function verifyEmail($email)
unset($_REQUEST['process']);
$id = $oldid;
unset($oldid);
- $do = `echo "$debugkey\n--\n$debugpg\n--" >> /www/tmp/gpg.debug`;
exit();
}
elseif($nerr)
@@ -303,7 +302,7 @@ function verifyEmail($email)
system("gpg --homedir $cwd --import $cwd/gpg.csr");
- $debugpg = $gpg = trim(`gpg --homedir $cwd --with-colons --fixed-list-mode --list-keys $keyid 2>&1`);
+ $gpg = trim(`gpg --homedir $cwd --with-colons --fixed-list-mode --list-keys $keyid 2>&1`);
$lines = "";
$gpgarr = explode("\n", $gpg);
foreach($gpgarr as $line)