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.
While working with ubercart for the first time I ran into a situation when securepages_get_query() produces errors. The reason is that query string contains destination[]=SOME_DESTINATION
and parse_str() turns destination[] into an array instead of a string containing "[]".
I attached a patch that uses another strategy to strip "q" from query string. Additionally my patch replaces urlencode() by rawurlencode() because that's what used by drupal_urlencode().
Comment | File | Size | Author |
---|---|---|---|
securepages.keep-query-string.patch | 1.09 KB | mkalkbrenner |
Comments
Comment #1
gordon CreditAttribution: gordon commentedThanks I have committed this to dev.