Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I think this was changed in error, as the query string shouldn't need the double-encoding required in the main URL when clean URLs are on (to work around mod_rewrite's decoding).
I think drupal_urlencode should in fact not be used here, to avoid the double-encoding problems. Instead we should revert to urlencode(), or, perhaps better, rawurlencode() as used in drupal_urlencode().
Comments
Comment #1
Steven commentedNope, just an oversight. Fixed in CVS.
Comment #2
(not verified) commentedComment #3
fonant commentedI think this was changed in error, as the query string shouldn't need the double-encoding required in the main URL when clean URLs are on (to work around mod_rewrite's decoding).
I think drupal_urlencode should in fact not be used here, to avoid the double-encoding problems. Instead we should revert to urlencode(), or, perhaps better, rawurlencode() as used in drupal_urlencode().
Resulting issue?: http://drupal.org/node/285496
Comment #4
fonant commentedAnd other issues that are the result of this change?
http://drupal.org/node/178615 <- The main issue
http://drupal.org/node/221915