Commit 3d0875fa authored by Kjartan's avatar Kjartan

CHANGES

- Modified check_mail() to allow '+' characters in mail addresses.

TODO
- Extend the regular expression to allow addresses valid in the RFC's.
  Currently IP domains are banned, and so are many other extensions of RFC
  822. This is not a priority since we currently support 96% of all addresses.
parent 4060a9ee
......@@ -65,7 +65,7 @@ function check_code($text) {
}
function check_mail($mail) {
return eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $mail) ? 1 : 0;
return eregi("^[_+\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $mail) ? 1 : 0;
}
function check_name($name) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment