Merge pull request #774 from icecaster/master

fixing strict notice by declaring static method Email::is_valid_address() as static
This commit is contained in:
Sean Harvey 2012-09-05 19:04:20 -07:00
commit 19bdd4b4c5

View File

@ -560,7 +560,7 @@ class Email extends ViewableData {
* This code is licensed under a Creative Commons Attribution-ShareAlike 2.5 License * This code is licensed under a Creative Commons Attribution-ShareAlike 2.5 License
* http://creativecommons.org/licenses/by-sa/2.5/ * http://creativecommons.org/licenses/by-sa/2.5/
*/ */
function is_valid_address($email){ public static function is_valid_address($email){
$qtext = '[^\\x0d\\x22\\x5c\\x80-\\xff]'; $qtext = '[^\\x0d\\x22\\x5c\\x80-\\xff]';
$dtext = '[^\\x0d\\x5b-\\x5d\\x80-\\xff]'; $dtext = '[^\\x0d\\x5b-\\x5d\\x80-\\xff]';
$atom = '[^\\x00-\\x20\\x22\\x28\\x29\\x2c\\x2e\\x3a-\\x3c'. $atom = '[^\\x00-\\x20\\x22\\x28\\x29\\x2c\\x2e\\x3a-\\x3c'.