Просмотр исходного кода

Fix check in Edit Firewall page

Kristan Kenney 5 лет назад
Родитель
Сommit
2a97198f56
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      web/edit/firewall/index.php

+ 2 - 2
web/edit/firewall/index.php

@@ -81,7 +81,7 @@ if (!empty($_POST['save'])) {
         }
         $_SESSION['error_msg'] = sprintf(_('Field "%s" can not be blank.'),$error_msg);
     }
-    if (!empty($_SESSION['error_msg'])) {
+    if (empty($_SESSION['error_msg'])) {
         $v_rule = escapeshellarg($_GET['rule']);
         $v_action = escapeshellarg($_POST['v_action']);
         $v_protocol = escapeshellarg($_POST['v_protocol']);
@@ -93,7 +93,7 @@ if (!empty($_POST['save'])) {
         $v_comment = escapeshellarg($_POST['v_comment']);
     
         // Change Status
-        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);
         check_return_code($return_var,$output);
         unset($output);