Skip to content

Commit 443614a

Browse files
committed
Do not change SSL certs if enabling Let's Encrypt
Fixes issue noted in outroll/vesta#1008
1 parent 310a379 commit 443614a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/edit/web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
}
280280

281281
// Change SSL certificate
282-
if (( $v_letsencrypt == 'no' ) && ( $v_ssl == 'yes' ) && (!empty($_POST['v_ssl'])) && (empty($_SESSION['error_msg']))) {
282+
if (( $v_letsencrypt == 'no' ) && (empty($_POST['v_letsencrypt'])) && ( $v_ssl == 'yes' ) && (!empty($_POST['v_ssl'])) && (empty($_SESSION['error_msg']))) {
283283
if (( $v_ssl_crt != str_replace("\r\n", "\n", $_POST['v_ssl_crt'])) || ( $v_ssl_key != str_replace("\r\n", "\n", $_POST['v_ssl_key'])) || ( $v_ssl_ca != str_replace("\r\n", "\n", $_POST['v_ssl_ca']))) {
284284
exec ('mktemp -d', $mktemp_output, $return_var);
285285
$tmpdir = $mktemp_output[0];

0 commit comments

Comments
 (0)