6.0.0-beta1
8/20/25

[#2583] field type ipaddress check is broken
Summary field type ipaddress check is broken
Queue Horde Framework Packages
Queue Version FRAMEWORK_3
Type Bug
State Resolved
Priority 1. Low
Owners
Requester horde (at) marinus (dot) nu
Created 09/09/2005 (7285 days ago)
Due
Updated 09/10/2005 (7284 days ago)
Assigned
Resolved 09/10/2005 (7284 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/10/2005 03:24:39 AM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Fixed, thanks.
09/09/2005 10:22:32 PM horde (at) marinus (dot) nu Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ field type ipaddress check is broken
Queue ⇒ Horde Framework Packages
Reply to this comment
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) {


Saved Queries