From: Rich Salz Date: Sat, 7 Oct 2017 18:59:18 +0000 (-0400) Subject: Anchor the regexp match X-Git-Tag: OpenSSL_1_1_1-pre1~595 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=32cd473392d20b70bf6f1272a873f47a71a9417b Anchor the regexp match Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/4483) --- diff --git a/apps/CA.pl.in b/apps/CA.pl.in index b5c4f59446..6306fa47d5 100644 --- a/apps/CA.pl.in +++ b/apps/CA.pl.in @@ -127,7 +127,7 @@ if ($WHAT eq '-newcert' ) { # create a pre-certificate $RET = run("$REQ -x509 -precert -keyout $NEWKEY -out $NEWCERT $DAYS"); print "Pre-cert is in $NEWCERT, private key is in $NEWKEY\n" if $RET == 0; -} elsif ($WHAT =~ /\-newreq(\-nodes)?/ ) { +} elsif ($WHAT =~ /^\-newreq(\-nodes)?$/ ) { # create a certificate request $RET = run("$REQ -new $1 -keyout $NEWKEY -out $NEWREQ $DAYS $EXTRA{req}"); print "Request is in $NEWREQ, private key is in $NEWKEY\n" if $RET == 0;