| @@ 2440-2443 (lines=4) @@ | ||
| 2437 | } |
|
| 2438 | list($email_pref, $input) = explode('@', $input, 2); |
|
| 2439 | $arr = explode('.', $input); |
|
| 2440 | foreach ($arr as $k => $v) { |
|
| 2441 | $conv = $this->_decode($v); |
|
| 2442 | if ($conv) { |
|
| 2443 | $arr[$k] = $conv; |
|
| 2444 | } |
|
| 2445 | } |
|
| 2446 | $return = $email_pref . '@' . join('.', $arr); |
|
| @@ 2456-2459 (lines=4) @@ | ||
| 2453 | $parsed = parse_url($input); |
|
| 2454 | if (isset($parsed['host'])) { |
|
| 2455 | $arr = explode('.', $parsed['host']); |
|
| 2456 | foreach ($arr as $k => $v) { |
|
| 2457 | $conv = $this->_decode($v); |
|
| 2458 | if ($conv) { |
|
| 2459 | $arr[$k] = $conv; |
|
| 2460 | } |
|
| 2461 | } |
|
| 2462 | $parsed['host'] = join('.', $arr); |
|
| @@ 2469-2472 (lines=4) @@ | ||
| 2466 | $return = $this->_unparse_url($parsed); |
|
| 2467 | } else { // parse_url seems to have failed, try without it |
|
| 2468 | $arr = explode('.', $input); |
|
| 2469 | foreach ($arr as $k => $v) { |
|
| 2470 | $conv = $this->_decode($v); |
|
| 2471 | if ($conv) { |
|
| 2472 | $arr[$k] = $conv; |
|
| 2473 | } |
|
| 2474 | } |
|
| 2475 | $return = join('.', $arr); |
|