Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.6.8

Bug #1264 Optional fields are never validated
Submitted: 2004-04-23 04:29 UTC
From: aashley at optimiser dot com Assigned: ieure
Status: Closed Package: Payment_Process
PHP Version: 5.0.0RC1 (Release Candidate 1) OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-04-23 04:29 UTC] aashley at optimiser dot com
Description: ------------ Optional fields are never validated in Common::validate() patch to fix: --- /usr/share/pear/Payment/Process/Common.php 2004-04-13 15:45:48.000000000 +0800 +++ Common.php 2004-04-21 22:37:25.000000000 +0800 @@ -58,7 +58,7 @@ $func = '_validate'.ucfirst($field); // Don't validate unset optional fields - if (! $this->isRequired($field) && !strlen($this->field)) { + if (! $this->isRequired($field) && !strlen($this->$field)) { continue; }

Comments

 [2004-04-28 20:14 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!