Follow-up to feature #9575: Return boolean value instead of filtered data
authorOliver Hader <oliver.hader@typo3.org>
Fri, 24 Oct 2008 16:20:12 +0000 (16:20 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 24 Oct 2008 16:20:12 +0000 (16:20 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4351 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php

index aea849b..c282152 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-24  Oliver Hader  <oliver@typo3.org>
+
+       * Follow-up to feature #9575: Return boolean value instead of filtered data
+
 2008-10-23  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #9613: htmlArea RTE uses JScodeLibArray to insert CSS
index 7d9ab7f..cf2861e 100755 (executable)
@@ -1435,7 +1435,7 @@ final class t3lib_div {
         * @return      boolean         Returns true if the $email address (input string) is valid
         */
        public static function validEmail($email)       {
-               return filter_var($email, FILTER_VALIDATE_EMAIL);
+               return (filter_var($email, FILTER_VALIDATE_EMAIL) !== false);
        }
 
        /**