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 |
State ⇒ Resolved
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ field type ipaddress check is broken
Queue ⇒ Horde Framework Packages
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) {