wordpress
wordpress copied to clipboard
Reset password link being incorrectly encoded
This is specifically to do with using Restrict Content Pro. Without the plugin activated it works, with the plugin it does not.
The URL is created in Restrict Content Pro here: https://github.com/restrictcontentpro/restrict-content-pro/blob/master/includes/login-functions.php#L284
This produces the following link:
rcp_action=lostpassword_reset&key=fZGz3AJAEt9dnVitYlXF&login=test
However when it runs through the SendGrid plugin this results in:
?rcp_action=lostpassword_reset#038;key=hD67EwiCG0csDHOo7rJa&login=test
So the & is being replaced with a #038;
Sorry, Github has linked an issue where it shouldn't have:
So the & is being replaced with a #38;