diff --git a/src/jceConnection/jcesslclient.cpp b/src/jceConnection/jcesslclient.cpp index b3e4579..57efebc 100644 --- a/src/jceConnection/jcesslclient.cpp +++ b/src/jceConnection/jcesslclient.cpp @@ -212,7 +212,11 @@ void jceSSLClient::readIt() emit statusBar->progressHasPacket(10); - if (tempPacket.contains("Go_To_system_After_Login.htm") || tempPacket.contains("")) + if ((tempPacket.mid(tempPacket.length()-7,7) == ".HTM-->") + || (tempPacket.mid(tempPacket.length()-7,7) == ".htm-->") + || tempPacket.contains("") + ) + { //we have the last packet. (uses only in login first step recieveLastPacket = true; diff --git a/src/jceConnection/jcesslclient.h b/src/jceConnection/jcesslclient.h index 1f2471c..740764c 100644 --- a/src/jceConnection/jcesslclient.h +++ b/src/jceConnection/jcesslclient.h @@ -1,7 +1,7 @@ #ifndef JCESSLCLIENT_H #define JCESSLCLIENT_H -#include +#include #include #include #include