Closed Genevieve-K closed 2 years ago
Hi @Genevieve-K!
Thank you for reporting this! I just threw together a PR to fix this: https://github.com/impress-org/givewp/pull/6508
Would you be so kind as to test that and make sure it resolves the issue for you as well? You can also download a zip here if you'd prefer to do that: https://github.com/impress-org/givewp/actions/runs/2619432075
Much appreciated!
Hi @JasonTheAdams, I replaced 'esc_url' bay 'esc_url_raw' in the four files. It works! Thank you.
Resolved in https://github.com/impress-org/givewp/pull/6508.
User Story
As an admin, I want to preview emails with a donation ID and there is an error.
Details
On the email list, I want to preview an email. I see the email no associated to a donation. I choose a donation, and there is the error, the session is not recognized.
Expected Behavior
The email must be displayed for a donation.
Steps to Reproduce
Visuals
Additional Context
The URL is escaped, The '&' are replaced by '&' and the nonce is not regognized. Example with localhost: Escaped URL:
https://localhost/test-give/?give_action=preview_email&email_type=donation-receipt&_wpnonce=cdfe35823e&preview_id=134
Expected URL:https://localhost/test-give?give_action=preview_email&email_type=donation-receipt&_wpnonce=cdfe35823e&preview_id=134