Index: trunk/phase3/includes/installer/WebInstallerPage.php |
— | — | @@ -1081,8 +1081,10 @@ |
1082 | 1082 | } |
1083 | 1083 | |
1084 | 1084 | foreach( $memcServers as $server ) { |
1085 | | - $memcParts = explode( ":", $server ); |
1086 | | - if( !IP::isValid( $memcParts[0] ) ) { |
| 1085 | + $memcParts = explode( ":", $server, 2 ); |
| 1086 | + if ( !isset( $memcParts[0] ) |
| 1087 | + || ( !IP::isValid( $memcParts[0] ) |
| 1088 | + && ( gethostbyname( $memcParts[0] ) == $memcParts[0] ) ) ) { |
1087 | 1089 | $this->parent->showError( 'config-memcache-badip', $memcParts[0] ); |
1088 | 1090 | return false; |
1089 | 1091 | } elseif( !isset( $memcParts[1] ) ) { |