[dev] PGP problem

Didi Rieder adrieder at sbox.tugraz.at
Wed May 28 07:25:23 PDT 2003


Hi,

I found a problem with PGP signing messages, where I get "Undefined variable: 
sign_type". The patch below fixes the problem.

Didi


--- pgp.php     Wed May 28 16:20:09 2003
+++ pgp.php.new Wed May 28 16:20:47 2003
@@ -52,7 +52,7 @@
  * This class has been developed with, and is only guaranteed to work with,
  * Version 1.21 or above of GnuPG.
  *
- * $Horde: horde/lib/Crypt/pgp.php,v 1.55 2003/04/17 15:41:16 jan Exp $
+ * $Horde: horde/lib/Crypt/pgp.php,v 1.56 2003/05/19 23:45:56 slusarz Exp $
  *
  * Copyright 2002-2003 Michael Slusarz <slusarz at bigworm.colorado.edu>
  *
@@ -1014,10 +1014,10 @@
         $cmdline = array();
         if (array_key_exists('sigtype', $params) &&
             $params['sigtype'] == 'cleartext') {
-            $cmdline[] = '--clearsign';
+           $sign_type = '--clearsign';
         } else {
-            $cmdline[] = '--detach-sign';
-        }
+           $sign_type = '--detach-sign';
+       }

         /* Additional GPG options. */
         $cmdline += array(


--
-------------------------
Didi Rieder
adrieder at sbox.tugraz.at
PGPKey ID: 3431D0B0
-------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: PGP Digital Signature
Url : http://lists.horde.org/archives/dev/attachments/20030528/622953bc/attachment.bin


More information about the dev mailing list