Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there a reason to use urlencode
instead of drupal's inner function drupal_urlencode
?
Comments
Comment #1
Steven CreditAttribution: Steven commentedNope, just an oversight. Fixed in CVS.
Comment #2
(not verified) CreditAttribution: commentedComment #3
fonant CreditAttribution: 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 CreditAttribution: fonant commentedAnd other issues that are the result of this change?
http://drupal.org/node/178615 <- The main issue
http://drupal.org/node/221915