-commented out optional capability response reading on connect

release-0.6
alecpl 16 years ago
parent 89cf7c201b
commit f35f9c53fe

@ -480,9 +480,10 @@ function iil_Connect($host, $user, $password) {
$line = iil_ReadLine($conn->fp, 1024); $line = iil_ReadLine($conn->fp, 1024);
// RFC3501 [7.1] optional CAPABILITY response // RFC3501 [7.1] optional CAPABILITY response
if (preg_match('/\[CAPABILITY ([^]]+)\]/i', $line, $matches)) { // commented out, because it's not working always as should
$conn->capability = explode(' ', $matches[1]); // if (preg_match('/\[CAPABILITY ([^]]+)\]/i', $line, $matches)) {
} else { // $conn->capability = explode(' ', $matches[1]);
// } else {
fputs($conn->fp, "cp01 CAPABILITY\r\n"); fputs($conn->fp, "cp01 CAPABILITY\r\n");
do { do {
$line = trim(chop(iil_ReadLine($conn->fp, 100))); $line = trim(chop(iil_ReadLine($conn->fp, 100)));
@ -497,7 +498,7 @@ function iil_Connect($host, $user, $password) {
} }
} }
} while ($a[0] != 'cp01'); } while ($a[0] != 'cp01');
} // }
if (strcasecmp($auth_method, "check") == 0) { if (strcasecmp($auth_method, "check") == 0) {
//check for supported auth methods //check for supported auth methods

Loading…
Cancel
Save