enovance/phpipam — pull request #6 by bensnyde (2013-12-10 00:39:36+00:00)
Title: HTTP POST strings fail integer validation

https://github.com/enovance/phpipam/blob/master/api/models/subnet.php includes the following validation:

if($this->allowRequests != 0 || $this->allowRequests !=1) { throw new Exception('Invalid allow requests value'); }
if($this->showName != 0 || $this->showName !=1) { throw new Exception('Invalid show Name value'); }
if($this->pingSubnet != 0 || $this->pingSubnet !=1) { throw new Exception('Invalid ping subnet value'); }

These validations will always fail sine HTTP POST variables are strings.