PluginProbe
WebTotem Security / 2.3.14
WebTotem Security v2.3.14
3.0.1 3.0.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 2.0 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.1 2.2.2 2.2.3 2.2.4 All 109 releases
← All changes | library/Idn.php +4 -0 1.22.3.14 View file →
@@ -11,8 +11,12 @@
11 11 '4' => 30, '5' => 31, '6' => 32, '7' => 33, '8' => 34, '9' => 35,
12 12 );
13 13 public static function idn_to_utf8($domain)
14 14 {
15 + //if mb-string not installed
16 + if (!function_exists('mb_strtolower')) {
17 + return $domain;
18 + }
15 19 $domain = mb_strtolower($domain);
16 20 $parts = explode('.', $domain);
17 21 foreach ($parts as &$part) {
18 22 $length = \strlen($part);