diff --git a/xmlapi.php b/xmlapi.php index 4feb6d4..19b6756 100644 --- a/xmlapi.php +++ b/xmlapi.php @@ -666,22 +666,6 @@ public function xmlapi_query( $function, $vars = array() ) { error_log("RESPONSE:\n " . $response); } - // The only time a response should contain is in the case of authentication error - // cPanel 11.25 fixes this issue, but if is in the response, we'll error out. - - if (stristr($response, '') == true) { - if (stristr($response, 'Login Attempt Failed') == true) { - error_log("Login Attempt Failed"); - return; - } - if (stristr($response, 'action="/login/"') == true) { - error_log("Authentication Error"); - return; - } - return; - } - - // perform simplexml transformation (array relies on this) if ( ($this->output == 'simplexml') || $this->output == 'array') { $response = simplexml_load_string($response, null, LIBXML_NOERROR | LIBXML_NOWARNING);