Просмотр исходного кода

[ZF-7277] Zend_Validate:

- fixed userland iconv encoding

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17140 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 лет назад
Родитель
Сommit
0cb2bfb9da
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      library/Zend/Validate/Hostname.php

+ 1 - 1
library/Zend/Validate/Hostname.php

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