Permalink
Browse files

Added __DIR__ to make the class cacheable

  • Loading branch information...
1 parent 960e722 commit 526de7d1fb3798a574fc8684dc4748167b0700b5 @grizzm0 committed Jan 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/Zend/Validator/Hostname.php
@@ -519,7 +519,7 @@ public function isValid($value)
$regexChars = array(0 => '/^[a-z0-9\x2d]{1,63}$/i');
if ($this->getIdnCheck() && isset($this->validIdns[strtoupper($this->tld)])) {
if (is_string($this->validIdns[strtoupper($this->tld)])) {
- $regexChars += include ($this->validIdns[strtoupper($this->tld)]);
+ $regexChars += include __DIR__ .'/'. $this->validIdns[strtoupper($this->tld)];
} else {
$regexChars += $this->validIdns[strtoupper($this->tld)];
}

0 comments on commit 526de7d

Please sign in to comment.