summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ".