Skip to content

Commit 4f0bade

Browse files
committed
*Remove flawed SSL logic
1 parent d7a4697 commit 4f0bade

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

web/edit/web/index.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -274,19 +274,8 @@
274274
$restart_web = 'yes';
275275
$restart_proxy = 'yes';
276276
}
277-
else {
278-
// Delete SSL certificate
279-
if (( $v_ssl == 'yes' ) && (empty($_POST['v_ssl'])) && (empty($_SESSION['error_msg']))) {
280-
exec (VESTA_CMD."v-list-web-domain ".$user." ".$v_domain." json", $output, $return_var);
281-
$data = json_decode(implode('', $output), true);
282-
exec (VESTA_CMD."v-add-letsencrypt-domain ".$user." ".$v_domain." '".$data['ALIAS']."' 'no'", $output, $return_var);
283-
check_return_code($return_var,$output);
284-
unset($output);
285-
$v_ssl = 'no';
286-
$restart_web = 'yes';
287-
$restart_proxy = 'yes';
288-
}
289-
}
277+
278+
// Enable Lets Encrypt support
290279
if (( $v_letsencrypt == 'no' || empty( $v_letsencrypt)) && (!empty($_POST['v_letsencrypt'])) && empty($_SESSION['error_msg'])) {
291280
exec (VESTA_CMD."v-list-web-domain ".$user." ".$v_domain." json", $output, $return_var);
292281
$data = json_decode(implode('', $output), true);

0 commit comments

Comments
 (0)