diff --git a/mozilla/xpfe/components/prefwindow/resources/content/pref-languages.js b/mozilla/xpfe/components/prefwindow/resources/content/pref-languages.js index fbb1ba585bd..81a6a1be4d4 100644 --- a/mozilla/xpfe/components/prefwindow/resources/content/pref-languages.js +++ b/mozilla/xpfe/components/prefwindow/resources/content/pref-languages.js @@ -302,7 +302,7 @@ function IsRFC1766LangTag(candidate) { or an IANA registered tag from 3 to 8 characters. */ if (tags.length > 1) { - if (tags[1].length < 2 || tags[1].length > 3) return false; + if (tags[1].length < 2 || tags[1].length > 8) return false; if (!isAlphaNum(tags[1])) return false; /* do not allow user-assigned ISO 3166 country codes */