File: includes/functions_jabber.php
Unmodified
Added
Modified
Removed
Line 250 | Line 250 |
---|
return true; }
|
return true; }
|
// Apparently an error occured...
| // Apparently an error occurred...
|
$this->add_to_log('Error: open_socket() - ' . $errorstr); return false; }
| $this->add_to_log('Error: open_socket() - ' . $errorstr); return false; }
|
Line 476 | Line 476 |
---|
} else if (in_array('PLAIN', $methods) && ($this->session['ssl'] || !empty($this->session['tls']))) {
|
} else if (in_array('PLAIN', $methods) && ($this->session['ssl'] || !empty($this->session['tls']))) {
|
| // http://www.ietf.org/rfc/rfc4616.txt (PLAIN SASL Mechanism)
|
$this->send("<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>"
|
$this->send("<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>"
|
. base64_encode(chr(0) . $this->username . '@' . $this->server . chr(0) . $this->password) .
| . base64_encode($this->username . '@' . $this->server . chr(0) . $this->username . chr(0) . $this->password) .
|
'</auth>'); } else if (in_array('ANONYMOUS', $methods))
| '</auth>'); } else if (in_array('ANONYMOUS', $methods))
|