Fixed and closed #525 : if mail link start with "mailto:" the wiki no more add "mailto:" to link address.
This commit is contained in:
parent
2c65f30a1c
commit
3a853ecdd8
2 changed files with 7 additions and 3 deletions
|
@ -1702,7 +1702,11 @@ namespace ScrewTurn.Wiki {
|
|||
sb.Append(@"<a");
|
||||
if(!isImage) sb.Append(@" class=""emaillink""");
|
||||
if(blank) sb.Append(@" target=""_blank""");
|
||||
sb.Append(@" href=""mailto:");
|
||||
if(targetUrl.StartsWith(@"mailto:")) {
|
||||
sb.Append(@" href=""");
|
||||
} else {
|
||||
sb.Append(@" href=""mailto:");
|
||||
}
|
||||
sb.Append(Tools.ObfuscateText(targetUrl.Replace("&", "%26"))); // Trick to let ampersands work in email addresses
|
||||
sb.Append(@""" title=""");
|
||||
if(!isImage && title.Length > 0) sb.Append(nstripped);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue