Permalink
Browse files

Fix: function call is not case-sensitive (#857)

  • Loading branch information...
1 parent 0de97ab commit a55b67d965e4560fcd4f285b833321507aa034f4 @corentinheadoo corentinheadoo committed with Synchro Oct 17, 2016
Showing with 10 additions and 9 deletions.
  1. +1 −0 class.phpmaileroauth.php
  2. +3 −3 class.smtp.php
  3. +1 −1 extras/htmlfilter.php
  4. +2 −2 extras/ntlm_sasl_client.php
  5. +3 −3 test/phpmailerTest.php
@@ -80,6 +80,7 @@ public function getOAUTHInstance()
* @uses SMTP
* @access public
* @return bool
+ * @throws phpmailerException
*/
public function smtpConnect($options = array())
{
View
@@ -477,7 +477,7 @@ public function authenticate(
$temp = new stdClass;
$ntlm_client = new ntlm_sasl_client_class;
//Check that functions are available
- if (!$ntlm_client->Initialize($temp)) {
+ if (!$ntlm_client->initialize($temp)) {
$this->setError($temp->error);
$this->edebug(
'You need to enable some modules in your php.ini file: '
@@ -487,7 +487,7 @@ public function authenticate(
return false;
}
//msg1
- $msg1 = $ntlm_client->TypeMsg1($realm, $workstation); //msg1
+ $msg1 = $ntlm_client->typeMsg1($realm, $workstation); //msg1
if (!$this->sendCommand(
'AUTH NTLM',
@@ -506,7 +506,7 @@ public function authenticate(
$password
);
//msg3
- $msg3 = $ntlm_client->TypeMsg3(
+ $msg3 = $ntlm_client->typeMsg3(
$ntlm_res,
$username,
$realm,
@@ -901,7 +901,7 @@ function tln_sanitize(
}
$trusted .= tln_tagprint($tagname, $attary, $tagtype);
$trusted .= $free_content;
- $trusted .= tln_tagprint($tagname, false, 2);
+ $trusted .= tln_tagprint($tagname, null, 2);
}
continue;
}
@@ -160,12 +160,12 @@ public function step(&$client, $response, &$message, &$interactions)
{
switch ($this->state) {
case SASL_NTLM_STATE_IDENTIFY_DOMAIN:
- $message = $this->TypeMsg1($this->credentials["realm"], $this->credentials["workstation"]);
+ $message = $this->typeMsg1($this->credentials["realm"], $this->credentials["workstation"]);
$this->state = SASL_NTLM_STATE_RESPOND_CHALLENGE;
break;
case SASL_NTLM_STATE_RESPOND_CHALLENGE:
$ntlm_response = $this->NTLMResponse(substr($response, 24, 8), $this->credentials["password"]);
- $message = $this->TypeMsg3(
+ $message = $this->typeMsg3(
$ntlm_response,
$this->credentials["user"],
$this->credentials["realm"],
@@ -1264,12 +1264,12 @@ public function testQmailSend()
//Only run if we have qmail installed
if (file_exists('/var/qmail/bin/qmail-inject')) {
$this->Mail->Body = 'Sending via qmail';
- $this->BuildBody();
+ $this->buildBody();
$subject = $this->Mail->Subject;
$this->Mail->Subject = $subject . ': qmail';
- $this->Mail->IsQmail();
- $this->assertTrue($this->Mail->Send(), $this->Mail->ErrorInfo);
+ $this->Mail->isQmail();
+ $this->assertTrue($this->Mail->send(), $this->Mail->ErrorInfo);
} else {
$this->markTestSkipped('Qmail is not installed');
}

0 comments on commit a55b67d

Please sign in to comment.