As noted in the final release of Drupal 6.38 the drupal_goto() function will no longer attempt to decode URLs passed to it via the "destination" query parameter in the URL.

As a result of this the destination parameters that are encoded will end up being double encoded and the resulting URL will 404.

Comments

yeebot created an issue. See original summary.

yeebot’s picture

Component: Rules Core » Module Integrations
StatusFileSize
new874 bytes

In case this helps anyone else out there I've written a patch to prevent the double encoding issue which occurs on both the destination $path and $query, and used a drupal_urlencode() on the $fragment.

tr’s picture

Status: Active » Closed (outdated)

Drupal 6 reached end-of-life more than two years ago, and is no longer supported.

The code in question has been completely rewritten for Drupal 7, so the patch isn't relevant to D7.

If there is still a double encoding problem with D7 or D8 Rules, feel free to reopen this issue and update the information in the issue summary.

hansrossel’s picture

Thank you! The patch solves the issue.