Wildcard cert paths contain a *

This commit is contained in:
Jamie Cameron
2020-01-09 17:00:13 -08:00
committed by GitHub
parent 6a86fb1e3f
commit 6382bc8f7e

View File

@@ -206,7 +206,7 @@ if ($letsencrypt_cmd) {
return (0, "<pre>".&html_escape($out || "No output from $letsencrypt_cmd")."</pre>");
}
my ($full, $cert, $key, $chain);
if ($out =~ /(\/etc\/letsencrypt\/(?:live|archive)\/[a-zA-Z0-9\.\_\-\/\r\n ]*\.pem)/) {
if ($out =~ /(\/etc\/letsencrypt\/(?:live|archive)\/[a-zA-Z0-9\.\_\-\/\r\n\* ]*\.pem)/) {
# Output contained the full path
$full = $1;
$full =~ s/\s//g;