Хакнутая функция файла \gui\include\input-checks.php из строки 20 Омеги (из выпущеных мною фикс-релизов)
Code
- function _validates_tld($tld) {
- $cfg = ispCP_Registry::get('Config');
- global $validation_err_msg;
- $validation_err_msg = tr('Wrong Top Level Domain syntax: <b>%s</b>', $tld);
- $matches = array();
- if ($cfg->TLD_STRICT_VALIDATION) {
- // This pattern Matches only Top Level Domain listed in Iana root database
- // ( only ccTLDs and gTLDs, not IDNs )
- // TRUE if the TLD syntax and lenght is correct
- // TRUE with $matches[1] set if the TLD lenght is wrong
- // FALSE if the TLD syntax is wrong
- $pattern =
- '@^(?:
- (?:a[cdefgilmnoqrstuwxz]|aero|asia)|
- (?:b[abdefghijlmnorstvwyz]|biz)|
- (?:c[acdfghiklmnoruvxyz]|cat|com|coop)|
- d[ejkmoz]|
- (?:e[ceghrstu]|edu)|
- f[ijkmor]|
- (?:g[abdefghilmnpqrstuwy]|gov)
- |h[kmnrtu]|
- (?:i[delmnoqrst]|info|int)|
- (?:j[emop]|jobs)|
- k[eghimnprwyz]|
- l[abcikrstuvy]|
- (?:m[acdefghklmnopqrstuvwxyz]|mil|mobi|museum)|
- (?:n[acefgilopruz]|name|net)|
- (?:om|org)|
- (?:p[aefghklmnrstwy]|pro)|
- qa|
- r[eosuw]|
- s[abcdeghijklmnortuvyz]|
- (?:t[cdfghjklmnoprtvwz]|tel|travel)|
- u[agkmsyz]|
- v[aceginu]|
- w[fs]|
- y[et]|
- z[amw]|
- рф|
- укр|
- бг|
- блог|
- қаз|
- io|
- MD|
- ([a-z]|[a-z]{7,})
- )$@ix';
- } else {
- // This pattern matches only realistic TLDs (i.e. those with 2 to 6 letters) - Not strict.
- // TRUE if the TLD syntax and lenght is correct
- // TRUE with $matches[1] set if the TLD lenght is wrong
- // FALSE if the TLD syntax is wrong
- $pattern = '@^(?:[a-z]{2,6}|([a-z]|[a-z]{7,}))$@';
- }
- if (($ret = preg_match($pattern, $tld, $matches)) && array_key_exists(1, $matches)) {
- $validation_err_msg = tr('Wrong Top Level Domain lenght: <b>%s</b>', $tld);
- $ret = false;
- }
- return (bool) $ret;
- } // end _validates_tld()
Тупанул полгода назад при создании тикета