I'm generating an e-mail in my website's controller with a link to my website:
"http://" & Request.Url.Authority & "/some-page"
This works when I tested it on my local machine (returns localhost:12345
) and in production (returns www.company.com
) but 1 person got this as a result:
http://www.company..com/some-page
As you can see there are 2 ..
in the domain name. I can't reproduce this error, how is this possible?
Edit: a bit more information
- The type of email I'm sending is a plain text email (no HTML or RTF)
- The webserver logs show www.company.com as the domain when the problematic request was made
- I only received a partial screenshot of the email. I think the email client is Outlook but I see no reason why Outlook would have misinterpreted the link.
- It's certainly possible that this person (or malware) has edited the content of this email.