Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jun 27, 2012
1 parent beb170a commit 9262db1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Ip.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public function isValid($value)
return true;
} else {
if ((bool) $this->options['allowliteral']) {
var_dump($value,$this->options['allowliteral']);
static $regex = '/^\[(.*)\]$/';
if ((bool) preg_match($regex, $value, $matches)) {
$value = $matches[1];
Expand Down Expand Up @@ -205,4 +204,4 @@ protected function validateIPvFuture($value)
*/
return ($result && $matches[1] != 4 && $matches[1] != 6);
}
}
}

0 comments on commit 9262db1

Please sign in to comment.