mirror of
https://github.com/e107inc/e107.git
synced 2025-07-28 02:10:46 +02:00
Better XHTML compliance on 'mailto' links
This commit is contained in:
@@ -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>";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user