6.0.0-git
2021-01-18

[#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 2005-09-09 (5610 days ago)
Due
Updated 2005-09-10 (5609 days ago)
Assigned
Resolved 2005-09-10 (5609 days ago)
Milestone
Patch No

History
2005-09-10 03:24:39 Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Fixed, thanks.
2005-09-09 22:22:32 horde (at) marinus (dot) nu Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
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