aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/objects/objects.pl
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/objects/objects.pl')
-rw-r--r--crypto/objects/objects.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/objects/objects.pl b/crypto/objects/objects.pl
index d0ed459d3dc4..389dc348373a 100644
--- a/crypto/objects/objects.pl
+++ b/crypto/objects/objects.pl
@@ -67,7 +67,7 @@ while (<IN>)
$myoid = &process_oid($myoid);
}
- if ($Cname eq "" && !($myln =~ / /))
+ if ($Cname eq "" && ($myln =~ /^[_A-Za-z][\w.-]*$/ ))
{
$Cname = $myln;
$Cname =~ s/\./_/g;