Skip to content

Commit 15fe882

Browse files
authored
Fix: Users can not create a new DNS domain (hestiacp#3451)
When flag USER_EDIT_DNS_TEMPLATES was set to no.
1 parent a8c4685 commit 15fe882

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/add/dns/index.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@
117117
unset($output);
118118
$v_template = $user_config[$user_plain]["DNS_TEMPLATE"];
119119

120-
if ($v_template != $_POST["v_template"] && empty($_SESSION["error_msg"])) {
120+
if (
121+
$v_template != $_POST["v_template"] &&
122+
!empty($_POST["v_template"]) &&
123+
empty($_SESSION["error_msg"])
124+
) {
121125
$v_template = quoteshellarg($_POST["v_template"]);
122126
exec(
123127
HESTIA_CMD .

0 commit comments

Comments
 (0)