summaryrefslogtreecommitdiff
path: root/includes/account_stuff.php
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2011-04-07 05:37:02 +0200
committerMichael Tänzer <neo@nhng.de>2011-04-07 05:37:02 +0200
commit2faeb0030546e42418a24d8343f42e4888bd3dee (patch)
treed4dc9bc8afa9cf54f8c5c42a48edea150abbc2bf /includes/account_stuff.php
parentb23ac549d4db4891e0d694ac6b69a5834905f42f (diff)
downloadcacert-devel-2faeb0030546e42418a24d8343f42e4888bd3dee.tar.gz
cacert-devel-2faeb0030546e42418a24d8343f42e4888bd3dee.tar.xz
cacert-devel-2faeb0030546e42418a24d8343f42e4888bd3dee.zip
#918: Fix regex for extracting the public key algorithm
#918: "Weak keys in certificates" Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'includes/account_stuff.php')
-rw-r--r--includes/account_stuff.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/account_stuff.php b/includes/account_stuff.php
index a38890e..e19879c 100644
--- a/includes/account_stuff.php
+++ b/includes/account_stuff.php
@@ -373,7 +373,7 @@ function hideall() {
$spkacText = `echo $spkac | openssl spkac -spkac $spkacname`;
/* Which public key algorithm? */
- if (!preg_match('/^\s*Public Key Algorithm: ([^\s])$/m', $spkacText,
+ if (!preg_match('/^\s*Public Key Algorithm: ([^\s]+)$/m', $spkacText,
$algorithm))
{
trigger_error("checkWeakKeySPKAC(): Couldn't extract the public ".
@@ -443,7 +443,7 @@ function hideall() {
function checkWeakKeyText($text)
{
/* Which public key algorithm? */
- if (!preg_match('/^\s*Public Key Algorithm: ([^\s])$/m', $text,
+ if (!preg_match('/^\s*Public Key Algorithm: ([^\s]+)$/m', $text,
$algorithm))
{
trigger_error("checkWeakKeyText(): Couldn't extract the public ".