Bug #8826: Fix display of S/MIME cert data
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 28 Jan 2010 20:01:13 +0000 (13:01 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 28 Jan 2010 20:01:13 +0000 (13:01 -0700)
framework/Crypt/lib/Horde/Crypt/Smime.php

index deb9f4f..71faac5 100644 (file)
@@ -666,7 +666,7 @@ class Horde_Crypt_Smime extends Horde_Crypt
              * openssl_x509_parse() works, but doesn't have a stable API.
              * Since v1 is such an old standard anyway, best just to abort
              * here. */
-            (count($cert_data[1][0][1]) != 7)) {
+            !isset($cert_data[1][0][1][6])) {
             return false;
         }