Subject says almost all. The result of the function is set as 'destination' parameter for the target url of forms. If the form is submitted and form input has been processed, Drupal will drupal_goto() to the 'destination' URL. Because drupal_goto() translates the URL to alias form, the URL passed to drupal_goto should be in source form.

At least, that's what I think ;-) I definitely don't know many intimate details of Drupal's inner functioning, so I could be wrong. I've posted my solution in http://drupal.org/node/78356

CommentFileSizeAuthor
#5 common.inc.patch_4.txt631 byteseveltman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drumm’s picture

Status: Needs review » Active

There isn't a patch file attached here.

eveltman’s picture

Sorry for not making a patch file, I'm not too familiar with that tool and didn't have the time to make myself familiar with it. But I placed the fixed code on http://drupal.org/node/78356. That's why I thought 'patch (code needs review)' was an appropriate status for the issue.

eveltman’s picture

Status: Active » Needs review

Changing status back to 'patch' again. See link in the original description. The fixed function is there.

StevenPatz’s picture

Status: Needs review » Active

There is no patch to review.

eveltman’s picture

Version: 4.7.3 » 4.7.4
Status: Active » Needs review
FileSize
631 bytes

OK, I ran into it again with 4.7.4. Now I had a little more time, so I created a real patch file. Hope it's OK now.

killes@www.drop.org’s picture

Version: 4.7.4 » 5.x-dev

moving

Steven’s picture

Status: Needs review » Patch (to be ported)

This patch does expose a non-clean URL, but as its only used for form submission, it's acceptable. Internally, we should never use aliases in drupal_goto() calls.

Tested and committed to HEAD.

killes@www.drop.org’s picture

Status: Patch (to be ported) » Fixed

applied to 4.7

Anonymous’s picture

Status: Fixed » Closed (fixed)