Fix RFC 5322 'atext'
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 10 Jan 2011 19:55:30 +0000 (19:55 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 10 Jan 2011 19:55:30 +0000 (19:55 +0000)
An additional character was introducted in the RFC 5322 atext fragment.
Spotted with r79924 which send the file as latin1 encoding.

includes/User.php
resources/mediawiki.util/mediawiki.util.js

index 594a109..40a41ed 100644 (file)
@@ -652,7 +652,7 @@ class User {
                if( !wfRunHooks( 'isValidEmailAddr', array( $addr, &$result ) ) ) {
                        return $result;
                }
-               $rfc5322_atext   = "a-z0-9!#$%&'*+-\/=?^_`{|}~" ;
+               $rfc5322_atext   = "a-z0-9!#$%&'*+-\/=?^_`{|}~" ;
                $rfc1034_ldh_str = "a-z0-9-" ;
 
                $HTML5_email_regexp = "/
index 34ad85b..c8c2114 100644 (file)
                                                 "|" / "}" /
                                                 "~"
                        */
-                       var     rfc5322_atext = "a-z0-9!#$%&'*+-/=?^_`{|}Ð~",
+                       var     rfc5322_atext = "a-z0-9!#$%&'*+-/=?^_`{|}~",
                
                        /**
                         * Next define the RFC 1034 'ldh-str'
 
        mw.util.init();
 
-})(jQuery, mediaWiki);
\ No newline at end of file
+})(jQuery, mediaWiki);