Thread Starter
cofix
(@cofix)
Hi Marcus,
OK, thanks for your feedback!
Do you want to mark this thread as resolved from now, or only after your upcoming release of events-manager?
Best regards.
Thread Starter
cofix
(@cofix)
Hello @angelo_nwl,
I was just wondering whether the devs had the opportunity to review my patch, so the bugfix could be part of the upcoming release?
To sum up, my patch consisted in changing one line in events-manager/templates/forms/bookingform/login.php so the redirection from an HTTPS-served page also uses the HTTPS protocol:
- <input type="hidden" name="redirect_to" value="<?php echo esc_url($_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']); ?>#em-booking" />
+ <input type="hidden" name="redirect_to" value="<?php echo esc_url(($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']); ?>#em-booking" />
Best regards.