1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 10:20:45 +02:00

Better XHTML compliance on 'mailto' links

This commit is contained in:
e107steved
2007-12-24 16:12:37 +00:00
parent 6306cddb16
commit 18fbd091d9

View File

@@ -26,6 +26,7 @@ global $pref;
{
list($pre,$email) = explode(":",$parm);
list($p1,$p2) = explode("@",$email);
$p2=rawurlencode($p2); // Primarily to pick up spaces, which are not allowed
return "<a class='bbcode' rel='external' href='javascript:window.location=\"mai\"+\"lto:\"+\"$p1\"+\"@\"+\"$p2\";self.close();' onmouseover='window.status=\"mai\"+\"lto:\"+\"$p1\"+\"@\"+\"$p2\"; return true;' onmouseout='window.status=\"\";return true;'>".$code_text."</a>";
}