Commit 06546281 authored by afahlvik's avatar afahlvik

"+OK" was not recognized as a legal greeting.

To accept "string" looks suspisious to me.
parent 92ace2b9
......@@ -92,7 +92,7 @@ class POP3{
$this->AddError("1 a connection is already opened");
$this->OpenConnection();
$this->greeting = @fgets($this->connection, 100);
if(GetType($this->greeting)!="string" OR strtok($this->greeting," ")!="+OK") :
if(GetType($this->greeting)!="string" AND strtok($this->greeting," ")!="+OK") :
$this->CloseConnection();
$this->AddError("2 POP3 server greeting was not found");
endif;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment