mirror of
https://github.com/webmin/webmin.git
synced 2026-02-14 02:42:07 +00:00
Tweak regexp for private key
This commit is contained in:
@@ -8,8 +8,8 @@ require './webmin-lib.pl';
|
||||
# Validate inputs
|
||||
$key = $in{'key'} || $in{'keyfile'};
|
||||
$key =~ s/\r//g;
|
||||
$key =~ /BEGIN .*PRIVATE KEY/ &&
|
||||
$key =~ /END .*PRIVATE KEY/ || &error($text{'savekey_ekey'});
|
||||
$key =~ /BEGIN (RSA )?PRIVATE KEY/ &&
|
||||
$key =~ /END (RSA )?PRIVATE KEY/ || &error($text{'savekey_ekey'});
|
||||
if (!$in{'cert_def'}) {
|
||||
# Make sure cert is valid
|
||||
$cert = $in{'cert'} || $in{'certfile'};
|
||||
|
||||
Reference in New Issue
Block a user