aboutsummaryrefslogtreecommitdiffstats
path: root/mod/invite.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-14 00:32:31 -0800
committerFriendika <info@friendika.com>2010-11-14 00:32:31 -0800
commit0851669b39db770e62374551c9394f0f3a652314 (patch)
treebf5dbba7080891dea1b48151022bc915d23c64c0 /mod/invite.php
parent7db4a0dd2ee631c4b0652e5852b1bb6f5ca50e63 (diff)
downloadvolse-hubzilla-0851669b39db770e62374551c9394f0f3a652314.tar.gz
volse-hubzilla-0851669b39db770e62374551c9394f0f3a652314.tar.bz2
volse-hubzilla-0851669b39db770e62374551c9394f0f3a652314.zip
clean up some regex's for i18n, and eliminate old ereg patterns.
Diffstat (limited to 'mod/invite.php')
-rw-r--r--mod/invite.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/invite.php b/mod/invite.php
index 3f9efc574..fe706a524 100644
--- a/mod/invite.php
+++ b/mod/invite.php
@@ -17,12 +17,13 @@ function invite_post(&$a) {
$recip = trim($recip);
- if(!eregi('[A-Za-z0-9._%-]+@[A-Za-z0-9._%-]+\.[A-Za-z]{2,6}', $recip)) {
- notice( $recip . t(' : ') . t('Not a valid email address.') . EOL);
+ if(! valid_email($recip)) {
+ notice( $recip . t(' : ') . t('Not a valid email address.') . EOL);
continue;
}
- $res = mail($recip, t('Please join my network on ') . $a->config['sitename'], $message, "From: " . $a->user['email']);
+ $res = mail($recip, t('Please join my network on ') . $a->config['sitename'],
+ $message, "From: " . $a->user['email']);
if($res) {
$total ++;
}