true, then it would try to use STARTTLS. While I understand this is a
new feature, and this is the dev branch, a little backwards compatibility
is easy in this case. The value 2 is considered true... Using === instead
is an exact match, so you'd have to have 2 in the use_*_tls options for it
to trigger starttls mode.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10832
7612ce4b-ef26-0410-bec9-
ea0150e637f0
- Added "bad plugin" blacklist in configtest.php.
- Fix MagicHTML fix with respect to parsing of u\rl in IE.
- Added monitored folders option to newmail plugin.
+ - Tweaked STARTTLS option for SMTP/IMAP to allow previous settings of just
+ pure TLS not to be used to assume STARTTLS.
+
Version 1.5.1 (branched on 2006-02-12)
--------------------------------------
* Implementing SMTP STARTTLS (rfc2487) in php 5.1.0+
* http://www.php.net/stream-socket-enable-crypto
*/
- if ($use_smtp_tls == 2) {
+ if ($use_smtp_tls === 2) {
if (function_exists('stream_socket_enable_crypto')) {
// don't try starting tls, when client thinks that it is already active
if ($this->tls_enabled) {
}
}
-?>
\ No newline at end of file
+?>
* Implementing IMAP STARTTLS (rfc2595) in php 5.1.0+
* http://www.php.net/stream-socket-enable-crypto
*/
- if ($tls == 2) {
+ if ($tls === 2) {
if (function_exists('stream_socket_enable_crypto')) {
// check starttls capability, don't use cached capability version
if (! sqimap_capability($imap_stream, 'STARTTLS', false)) {
return chop(substr($yp, strlen($username)+1));
}
-?>
\ No newline at end of file
+?>