| @@ 208-215 (lines=8) @@ | ||
| 205 | } |
|
| 206 | list ($email_pref, $input) = explode('@', $input, 2); |
|
| 207 | $arr = explode('.', $input); |
|
| 208 | foreach ($arr as $k => $v) { |
|
| 209 | if (preg_match('!^' . preg_quote($this->_punycode_prefix, '!') . '!', $v)) { |
|
| 210 | $conv = $this->_decode($v); |
|
| 211 | if ($conv) { |
|
| 212 | $arr[$k] = $conv; |
|
| 213 | } |
|
| 214 | } |
|
| 215 | } |
|
| 216 | $input = join('.', $arr); |
|
| 217 | $arr = explode('.', $email_pref); |
|
| 218 | foreach ($arr as $k => $v) { |
|
| @@ 218-225 (lines=8) @@ | ||
| 215 | } |
|
| 216 | $input = join('.', $arr); |
|
| 217 | $arr = explode('.', $email_pref); |
|
| 218 | foreach ($arr as $k => $v) { |
|
| 219 | if (preg_match('!^' . preg_quote($this->_punycode_prefix, '!') . '!', $v)) { |
|
| 220 | $conv = $this->_decode($v); |
|
| 221 | if ($conv) { |
|
| 222 | $arr[$k] = $conv; |
|
| 223 | } |
|
| 224 | } |
|
| 225 | } |
|
| 226 | $email_pref = join('.', $arr); |
|
| 227 | $return = $email_pref . '@' . $input; |
|
| 228 | } elseif (preg_match('![:\./]!', $input)) { // Or a complete domain name (with or without paths / parameters) |
|