changed evalURL(): now checks if url is actually a mail-address and prefixes it with "mailto:" if necessary
This commit is contained in:
parent
8990d95080
commit
e95ca73047
1 changed files with 3 additions and 1 deletions
|
@ -118,7 +118,9 @@ function activateLinks (str) {
|
|||
*/
|
||||
|
||||
function evalURL(url) {
|
||||
if (url && url.indexOf("://") < 0)
|
||||
if (url && url.indexOf("@") > 0 && url.indexOf("mailto:") == -1)
|
||||
return ("mailto:" + url);
|
||||
else if (url && url.indexOf("://") == -1)
|
||||
return ("http://" + url);
|
||||
return (url);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue