diff --git a/application/core/Files/AsynchronousFileReader.php b/application/core/Files/AsynchronousFileReader.php index 0a6508e8..a94c6731 100644 --- a/application/core/Files/AsynchronousFileReader.php +++ b/application/core/Files/AsynchronousFileReader.php @@ -51,6 +51,14 @@ class AsynchronousFileReader { $error = self::TIMEOUT_ERROR; } else if (substr($socket->streamBuffer, 9, 3) != "200") { $error = self::RESPONSE_ERROR; + + $resultArray = explode("\r\n\r\n", $socket->streamBuffer, 2); + if (count($resultArray) < 2) { + $error = self::INVALID_RESULT_ERROR; + } else { + $result = $resultArray[1]; + } + } else if ($socket->streamBuffer == '') { $error = self::NO_DATA_ERROR; } else { diff --git a/application/plugins/Dedimania/Dedimania.php b/application/plugins/Dedimania/Dedimania.php index 0065c556..314d667a 100644 --- a/application/plugins/Dedimania/Dedimania.php +++ b/application/plugins/Dedimania/Dedimania.php @@ -49,7 +49,7 @@ class Dedimania implements CallbackListener, TimerListener, Plugin { public function load(ManiaControl $maniaControl) { $this->maniaControl = $maniaControl; - return; + //return; $this->openDedimaniaSession(true); }