@@ -2439,7 +2439,7 @@ public function decode($input, $one_time_encoding = false)
24392439 $ conv = $ this ->_decode ($ v );
24402440 if ($ conv ) $ arr [$ k ] = $ conv ;
24412441 }
2442- $ return = $ email_pref . '@ ' . join ('. ' , $ arr );
2442+ $ return = $ email_pref . '@ ' . implode ('. ' , $ arr );
24432443 } elseif (preg_match ('![:\./]! ' , $ input )) { // Or a complete domain name (with or without paths / parameters)
24442444 // No no in strict mode
24452445 if ($ this ->_strict_mode ) {
@@ -2453,7 +2453,7 @@ public function decode($input, $one_time_encoding = false)
24532453 $ conv = $ this ->_decode ($ v );
24542454 if ($ conv ) $ arr [$ k ] = $ conv ;
24552455 }
2456- $ parsed ['host ' ] = join ('. ' , $ arr );
2456+ $ parsed ['host ' ] = implode ('. ' , $ arr );
24572457 if (isset ($ parsed ['scheme ' ])) {
24582458 $ parsed ['scheme ' ] .= (strtolower ($ parsed ['scheme ' ]) == 'mailto ' ) ? ': ' : ':// ' ;
24592459 }
@@ -2464,7 +2464,7 @@ public function decode($input, $one_time_encoding = false)
24642464 $ conv = $ this ->_decode ($ v );
24652465 if ($ conv ) $ arr [$ k ] = $ conv ;
24662466 }
2467- $ return = join ('. ' , $ arr );
2467+ $ return = implode ('. ' , $ arr );
24682468 }
24692469 } else { // Otherwise we consider it being a pure domain name string
24702470 $ return = $ this ->_decode ($ input );
0 commit comments