|
@@ -510,7 +510,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract
|
|
|
$length = $this->_idnLength[strtoupper($this->_tld)];
|
|
$length = $this->_idnLength[strtoupper($this->_tld)];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (iconv_strlen($domainPart) > $length) {
|
|
|
|
|
|
|
+ if (iconv_strlen($domainPart, 'UTF-8') > $length) {
|
|
|
$this->_error(self::INVALID_HOSTNAME);
|
|
$this->_error(self::INVALID_HOSTNAME);
|
|
|
} else {
|
|
} else {
|
|
|
$check = true;
|
|
$check = true;
|