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

drupal_goto update changes between 6.3x and 6.38 #110

Open
msusur opened this issue Apr 26, 2017 · 2 comments
Open

drupal_goto update changes between 6.3x and 6.38 #110

msusur opened this issue Apr 26, 2017 · 2 comments

Comments

@msusur
Copy link

msusur commented Apr 26, 2017

While upgrading to 6.38 I saw that the following line changed from extract(parse_url(urldecode($destination))); to extract(parse_url($destination));. Is there a good reason for that? Because it doesn't seem to be a backward compatible change. It breaks some of my urls such as; destination=page%253foo%253D10%2526bar%253D20.

I have created the pull request #109 in case that change make sense.

@msusur
Copy link
Author

msusur commented May 2, 2017

Would you mind dropping a comment on this one when you have time @pwolanin?

@techmunk
Copy link

From the Drupal 6.38 release notes at https://www.drupal.org/drupal-6.38-release-notes

The drupal_goto() function will no longer attempt to decode URLs passed to it via the "destination" query parameter in the URL. This could affect destination query parameters that were encoded using drupal_urlencode() before placing them on the page, but this should not be common since the drupal_urlencode() documentation already warned that using it in this manner could lead to unwanted double encoding.

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