Thomas Bruederli
2012-08-14 a1303514933afe2d867067e4b95412c79652c89b
Codestyle
1 files modified
2 ■■■ changed files
program/include/rcube_utils.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_utils.php
@@ -627,7 +627,7 @@
        // %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;