Browse Source

Fix IPv6 address validation on PHP with disabled IPv6 support

pull/291/head
Aleksander Machniak 10 years ago
parent
commit
6b31846c43
  1. 2
      program/lib/Roundcube/rcube_utils.php

2
program/lib/Roundcube/rcube_utils.php

@ -156,7 +156,7 @@ class rcube_utils
$length = strlen($part);
if (!$length) {
// there can be only one ::
if ($found_empty) {
if ($found_empty && $idx > 2) {
return false;
}
$found_empty = true;

Loading…
Cancel
Save