Parcourir la source

[Web] Do not check hostname is is_valid_domain_name

andryyy il y a 6 ans
Parent
commit
1207c6e865
1 fichiers modifiés avec 8 ajouts et 8 suppressions
  1. 8 8
      data/web/inc/functions.mailbox.inc.php

+ 8 - 8
data/web/inc/functions.mailbox.inc.php

@@ -245,14 +245,14 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
             );
             return false;
           }
-          if (!is_valid_domain_name($host1)) {
-            $_SESSION['return'][] = array(
-              'type' => 'danger',
-              'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
-              'msg' => 'access_denied'
-            );
-            return false;
-          }
+          // if (!is_valid_domain_name($host1)) {
+            // $_SESSION['return'][] = array(
+              // 'type' => 'danger',
+              // 'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
+              // 'msg' => 'access_denied'
+            // );
+            // return false;
+          // }
           if ($enc1 != "TLS" && $enc1 != "SSL" && $enc1 != "PLAIN") {
             $_SESSION['return'][] = array(
               'type' => 'danger',