We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0821d9c commit 2a97198Copy full SHA for 2a97198
1 file changed
web/edit/firewall/index.php
@@ -81,7 +81,7 @@
81
}
82
$_SESSION['error_msg'] = sprintf(_('Field "%s" can not be blank.'),$error_msg);
83
84
- if (!empty($_SESSION['error_msg'])) {
+ if (empty($_SESSION['error_msg'])) {
85
$v_rule = escapeshellarg($_GET['rule']);
86
$v_action = escapeshellarg($_POST['v_action']);
87
$v_protocol = escapeshellarg($_POST['v_protocol']);
@@ -93,7 +93,7 @@
93
$v_comment = escapeshellarg($_POST['v_comment']);
94
95
// Change Status
96
- exec (HESTIA_CMD."v-change-firewall-rule ".$v_rule." ".$v_action." ".$v_ip." ".$v_port." ".$v_protocol." ".$v_comment, $output, $return_var);
+ exec (HESTIA_CMD."v-change-firewall-rule ".$v_rule." ".$v_action." ".$v_ip." ".$v_port." ".$v_protocol." ".$v_comment, $output, $return_var);
97
check_return_code($return_var,$output);
98
unset($output);
99
0 commit comments