We have a system that sends regular emails with links, many of which contain URL-encoded parameters, such as:
href="http://www.mydomain.com/login.aspx?returnurl=http%3A%2F%2Fwww.mydomain.com%2Fview.aspx%3Fid%3D1234%26alert%3Dtrue"
You can see that the "returnurl" parameter is encoded. However, it seems that a large number of our users (apparently hotmail) receive emails with this partially decoded parameter, for example:
href="http://www.mydomain.com/login.aspx?returnurl=http://www.mydomain.com/view.aspx?view.aspx%3Fid%3D1234%26alert%3Dtrue"
Why decode it like that? Why only partially decode ?? Therefore, I do not know how to deal with it. I was thinking about base-64 encoding, but that base64 strings contain characters that also need decoding ... I was thinking about double encoding, but then I wonβt know if parameter decoding should be doubled or not. Can anyone help? Thanks.
email url-encoding hotmail
Shibbyuk
source share