6.0.0-RC7
6/30/26

[#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 9/9/05 (7599 days ago)
Due
Updated 9/10/05 (7598 days ago)
Assigned
Resolved 9/10/05 (7598 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
393 Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Fixed, thanks.
3210 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