|
|
|
Re: Forum email address conversion [message #22586 is a reply to message #22580] |
Mon, 07 February 2005 18:32 |
|
naudefj
Messages: 3772 Registered: December 2004
Karma: 28
|
Senior Member Administrator Core Developer |
|
|
Here is the patch:
--- ./src/post_proc.inc.t.old 2005-02-07 12:52:41.000000000 -0600
+++ ./src/post_proc.inc.t 2005-02-07 13:30:15.000000000 -0600
@@ -493,6 +493,9 @@
}
$email = str_replace('@', '@', substr($ostr, $es, $ee-$es));
+ if (strpos( substr($email,1,-1), '.') == false) { // EMail must have a . (dot)
+ $ppos = $pos += 1; continue;
+ }
$email_url = '<a href="mailto:'.$email.'" target="_blank">'.$email.'</a>';
$email_url_l = strlen($email_url);
$ostr = fud_substr_replace($ostr, $email_url, $es, $ee-$es);
Best regards.
Frank
|
|
|
|
Re: Forum email address conversion [message #23334 is a reply to message #23328] |
Sat, 12 March 2005 21:29 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
forum already does e-mail address encoding, it may not look it from the output, but if you view source of the HTML you'll see that the raw e-mail is not being displayed.
FUDforum Core Developer
|
|
|
|
Re: Forum email address conversion [message #23343 is a reply to message #23341] |
Sun, 13 March 2005 06:34 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
E-mail address does not need to have a "." to be valid. As long as host can be resolved it'll work, for example as long as my machine can resolve "foo" email@foo is a valid address.
FUDforum Core Developer
|
|
|
|
|
|
|
|
|
|
|
|
|