summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornisheeth-barthwal <nisheeth.barthwal@nbaztec.co.in>2013-03-04 12:50:12 +0100
committernisheeth-barthwal <nisheeth.barthwal@nbaztec.co.in>2013-03-04 12:50:12 +0100
commit7d10006a0001ff0e7d82ec994b1e9cbb63683ffc (patch)
tree97442588bb5b75becf31663129b5ec11489a1b19
parentff1a507a07792eca9bdc5d6503d5acfce4f2ba1f (diff)
Fixed #2289
-rw-r--r--system/libraries/Email.php2
-rw-r--r--user_guide_src/source/changelog.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index daa38484b..728b637a3 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -2017,7 +2017,7 @@ class CI_Email {
$reply = $this->_get_smtp_data();
- if (strpos($reply, '503') !== 0) // Already authenticated
+ if (strpos($reply, '503') === 0) // Already authenticated
{
return TRUE;
}
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index 07dae1fdc..d805c8f10 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -488,6 +488,7 @@ Bug fixes for 3.0
- Fixed a bug (#2239) - :doc:`Email Library <libraries/email>` improperly handled the Subject when used with ``bcc_batch_mode`` resulting in E_WARNING messages and an empty Subject.
- Fixed a bug (#2234) - :doc:`Query Builder <database/query_builder>` didn't reset JOIN cache for write-type queries.
- Fixed a bug (#2298) - :doc:`Database Results <database/results>` method `next_row()` kept returning the last row, allowing for infinite loops.
+- Fixed a bug (#2289) - :doc:`Email Library <libraries/email>` method `_smtp_authenticate()` returned prematurely from authentication due to opposite condition check.
Version 2.1.3
=============