Skip to content

Commit 7e46312

Browse files
committed
edit web domain: Fixed missing template bug
1 parent 7c63b94 commit 7e46312

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/edit/web/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,13 @@
233233
$ext = str_replace(' ', ", ", $ext);
234234
if (( $v_proxy_template != $_POST['v_proxy_template']) || ($v_proxy_ext != $ext)) {
235235
$ext = str_replace(', ', ",", $ext);
236-
exec (VESTA_CMD."v-change-web-domain-proxy-tpl ".$v_username." ".$v_domain." ".escapeshellarg($_POST['v_proxy_template'])." ".escapeshellarg($ext)." 'no'", $output, $return_var);
236+
if (!empty($_POST['v_proxy_template'])) $v_proxy_template = $_POST['v_proxy_template'];
237+
exec (VESTA_CMD."v-change-web-domain-proxy-tpl ".$v_username." ".$v_domain." ".escapeshellarg($v_proxy_template)." ".escapeshellarg($ext)." 'no'", $output, $return_var);
237238
if ($return_var != 0) {
238239
$error = implode('<br>', $output);
239240
if (empty($error)) $error = __('Error code:',$return_var);
240241
$_SESSION['error_msg'] = $error;
241242
}
242-
$v_proxy_template = $_POST['v_proxy_template'];
243243
$v_proxy_ext = str_replace(',', ', ', $ext);
244244
unset($output);
245245
$restart_proxy = 'yes';

0 commit comments

Comments
 (0)