Browse Source

[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 years ago
parent
commit
0cb2bfb9da
1 changed files with 1 additions and 1 deletions
  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)];
                                     $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;