EMail Verification Link Broken

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
sachintha81
Posts: 20
Joined: 07 Mar 2019, 20:59

EMail Verification Link Broken

Post 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 2382 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.
Attachments
string_api.zip
(8.29 KiB) Downloaded 306 times
sachintha81
Posts: 20
Joined: 07 Mar 2019, 20:59

Re: EMail Verification Link Broken

Post 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 2374 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 2374 times
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: EMail Verification Link Broken

Post by atrol »

Please use Search before posting and read the Manual
Post Reply