Active
Project:
Login redirect
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Aug 2015 at 00:27 UTC
Updated:
4 Jan 2016 at 23:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
japo32 commentedComment #3
japo32 commentedSo we found out that drupal_get_query_parameters() returned the character + in the query string as a space. Here's a patch with our (temporary) solution. We decided to override the function in one of our custom modules for now but the patch here is for the module.
Comment #4
jweowu commentedI suggest this issue be closed as "works as designed".
The value seen by this module comes from the
$_GETarray, which provides the URL-decoded values for the query parameters. A space in the value shows that the value was never URL-encoded for inclusion as a query parameter.If the value had been correctly encoded, you would see
%2Bbeing converted to+, rather than+being converted to a space.i.e. the problem lies in step (2) in which something else is generating the incorrect URL
https://mysite.com/user/?referrer=https://mysite.com?q=good+stuffThe correct URL would be
https://mysite.com/user/?referrer=https%3A%2F%2Fmysite.com%3Fq%3Dgood%2Bstuff