m_threadData = m_orgData + m_threadData;
}
m_orgData = m_threadData;
-
+ if ( m_invalidDataReceived ) {
+ return;
+ }
+
QString cachePath = Kita::Cache::getPath( url );
FILE *fs = fopen( QFile::encodeName( cachePath ), "w" );
if ( !fs ) return ;
QString retstr;
m_threadData = "";
m_firstReceive = FALSE;
+ m_invalidDataReceived = FALSE;
if ( KURL( getURL ).protocol() != "k2ch" ) {
KIO::SlaveConfig::self() ->setConfigData( "http",
QString cstr( data );
/* If this is the first call at resumption, remove LF at head. */
if(m_firstReceive) {
+ if ( cstr[0] != '\n' ) {
+ m_invalidDataReceived = TRUE;
+ }
cstr = cstr.mid(1);
}
m_firstReceive = FALSE;