diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-09-27 08:27:02 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-09-27 08:27:02 +0200 |
commit | 700dc66c679f0ae6e16c9d016a15bee4269371e6 (patch) | |
tree | 21f30c64e3f2559d015777ec7798855d32be24b5 /program/include/rcube_utils.php | |
parent | 18df6f38adb9fb067af104e4cf9484904bf49365 (diff) | |
parent | dc8f292b215719506c2ab0abd8429f4c5ec5c0ed (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/include/rcube_utils.php')
-rw-r--r-- | program/include/rcube_utils.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/program/include/rcube_utils.php b/program/include/rcube_utils.php index b278431a6..2a4d4c482 100644 --- a/program/include/rcube_utils.php +++ b/program/include/rcube_utils.php @@ -250,9 +250,6 @@ class rcube_utils $out = strtr($str, $encode_arr); - // avoid douple quotation of & - $out = preg_replace('/&([A-Za-z]{2,6}|#[0-9]{2,4});/', '&\\1;', $out); - return $newlines ? nl2br($out) : $out; } @@ -682,7 +679,7 @@ class rcube_utils // %s - domain name after the '@' from e-mail address provided at login screen. Returns FALSE if an invalid email is provided if (strpos($name, '%s') !== false) { $user_email = self::get_input_value('_user', self::INPUT_POST); - $user_email = rcube_utils::idn_convert($user_email, true); + $user_email = self::idn_convert($user_email, true); $matches = preg_match('/(.*)@([a-z0-9\.\-\[\]\:]+)/i', $user_email, $s); if ($matches < 1 || filter_var($s[1]."@".$s[2], FILTER_VALIDATE_EMAIL) === false) { return false; |