summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-05-17 14:15:47 +0200
committerTimothy Warren <tim@timshomepage.net>2012-05-17 14:15:47 +0200
commitd013c63462b4eaa2ac2f684b2ad498a9c4fb7dd5 (patch)
treea917dd9506043a8ef8be4d5b9eeeea9cc5065c00
parent421d6abf1ad3a1cfb96f9aad326c72c9b6fa3a06 (diff)
tweak and changelog entry
-rw-r--r--system/helpers/email_helper.php5
-rw-r--r--user_guide_src/source/changelog.rst1
2 files changed, 2 insertions, 4 deletions
diff --git a/system/helpers/email_helper.php b/system/helpers/email_helper.php
index ea9f6105d..628667d4d 100644
--- a/system/helpers/email_helper.php
+++ b/system/helpers/email_helper.php
@@ -42,15 +42,12 @@ if ( ! function_exists('valid_email'))
/**
* Validate email address
*
- * Updated to be more accurate to RFC822
- * see: http://www.iamcal.com/publish/articles/php/parsing_email/
- *
* @param string
* @return bool
*/
function valid_email($email)
{
- return (bool) filter_var($email, FILTER_VALIDATE_EMAIL);
+ return filter_var($email, FILTER_VALIDATE_EMAIL);
}
}
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index d33a6a635..f835a8c8d 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -52,6 +52,7 @@ Release Date: Not Released
- set_realpath() can now also handle file paths as opposed to just directories.
- do_hash() now uses PHP's native hash() function, supporting more algorithms.
- Added an optional paramater to ``delete_files()`` to enable it to skip deleting files such as .htaccess and index.html.
+ - Updated email helper to use ``filter_var`` to validate email addresses
- Database