[Tickets #2583] NEW: field type ipaddress check is broken

bugs@bugs.horde.org bugs at bugs.horde.org
Fri Sep 9 15:22:33 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2583
-----------------------------------------------------------------------
 Ticket             | 2583
 Created By         | horde at marinus.nu
 Summary            | field type ipaddress check is broken
 Queue              | Horde Framework Packages
 Version            | FRAMEWORK_3
 State              | Unconfirmed
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


horde at marinus.nu (2005-09-09 15:22) wrote:

the check for field type ipaddress is broken. if you set required=true the
code will check only length>0; if you set required=false the code will check
for a valid ip address but will not allow an empty input.

to fix it replace line 1292 in file lib/Horde/Form.php from
        } else {
to
        } if (strlen(trim($value)) > 0) {





More information about the bugs mailing list