Skip to content

Commit

Permalink
Increase the maximum string length for host in DNS
Browse files Browse the repository at this point in the history
The current DNS record class truncates the host down to 70 characters. When forwarding a domain to a URL over 70 characters, the destination URL is truncated, and the link will not be correct. This commit simply ups the maximum host length to 200 characters.
  • Loading branch information
aaronhuisinga committed Oct 2, 2014
1 parent 62b7668 commit ca8e95f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Namecheap/DnsRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function setHostId($value)
*/
public function setHost($value)
{
$this->_data['host'] = (string) substr($value, 0, 70);
$this->_data['host'] = (string) substr($value, 0, 200);
return $this;
}

Expand Down Expand Up @@ -185,7 +185,7 @@ public function setType($value)
*/
public function setData($value)
{
$this->_data['data'] = (string) substr($value, 0, 70);
$this->_data['data'] = (string) substr($value, 0, 200);
return $this;
}

Expand Down

0 comments on commit ca8e95f

Please sign in to comment.