Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controller->redirect('HTTP://DOMAIN.COM') treated as relative URL #24

Closed
brendandebeasi opened this issue Nov 6, 2019 · 1 comment
Closed

Comments

@brendandebeasi
Copy link

brendandebeasi commented Nov 6, 2019

library/Zend/Controller/Action/Helper/Redirector.php:366

if (!preg_match('|^[a-z]+://|', $url)) {
should be
if (!preg_match('|^[a-z]+://|i', $url)) {

$controller->redirect('HTTP://DOMAIN.COM') is treated as a relative URL and appended to current URL instead of being treated as an absolute

@Shardj
Copy link
Owner

Shardj commented Nov 11, 2019

Sorted, thanks. In the future PR's are preferred just as it makes my life easier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants