Page 1 of 1

EMail Verification Link Broken

Posted: 18 Mar 2019, 17:24
by sachintha81
When a new user signs up, in the verification email that receives the link is broken. If the link in the EMail is clicked, I get the following error:
APPLICATION ERROR #200 A required parameter to this page (confirm_hash) was not found.


Following is a sample Email that I get upon new user registration.
err.PNG
err.PNG (21.24 KiB) Viewed 3133 times

I figured out that the problem is there's an additional "amp;" in the link, and when I remove it and pastes in the browser and hit enter, it works.

According to the following bug it's supposed to be fixed, but it's not.
https://mantisbt.org/bugs/view.php?id=10369

I'm attaching my string_api.php file here as well.

Re: EMail Verification Link Broken

Posted: 18 Mar 2019, 20:19
by sachintha81
I did some digging around in the code and found that the string_html_specialchars function looks like this:
before.PNG
before.PNG (10.08 KiB) Viewed 3125 times
Removed the 'amp;' from it, and now works fine.
Is this supposed to be correct or is this a bug?

My edited version (which works) look like this:
after.PNG
after.PNG (9.78 KiB) Viewed 3125 times

Re: EMail Verification Link Broken

Posted: 20 Mar 2019, 19:33
by atrol