Fix condition check for replacing the chainfile statement in vhost templates

This commit is contained in:
Kienan Stewart 2018-07-31 15:41:10 -04:00 committed by Benjamin Sonntag
parent b5b8bc3028
commit 8af6b0d1f6
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ SELECT ?,?,?, FROM_UNIXTIME(?), FROM_UNIXTIME(?), ?, ?, sslcsr FROM certificate
$s = file_get_contents($TARGET_FILE); $s = file_get_contents($TARGET_FILE);
$s = str_replace("%%CRT%%", $cert["crt"], $s); $s = str_replace("%%CRT%%", $cert["crt"], $s);
$s = str_replace("%%KEY%%", $cert["key"], $s); $s = str_replace("%%KEY%%", $cert["key"], $s);
if (isset($cert["sslchain"]) && $cert["sslchain"]) { if (isset($cert["chain"]) && $cert["chain"]) {
$s = str_replace("%%CHAINLINE%%", "SSLCertificateChainFile " . $cert["chain"], $s); $s = str_replace("%%CHAINLINE%%", "SSLCertificateChainFile " . $cert["chain"], $s);
} else { } else {
$s = str_replace("%%CHAINLINE%%", "", $s); $s = str_replace("%%CHAINLINE%%", "", $s);