Permalink
Browse files

validation MDL-20821 Fixed a mistake in validation

  • Loading branch information...
1 parent 291542b commit a762409317a3e256607ad71bbdc1b40da3b5a6d6 Andrew Davis committed Nov 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
@@ -1355,7 +1355,7 @@ function formerr($error) {
*/
function validate_email($address) {
- return (validate_email('#^[-!\#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+'.
+ return (preg_match('#^[-!\#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+'.
'(\.[-!\#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+)*'.
'@'.
'[-!\#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.

0 comments on commit a762409

Please sign in to comment.