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.
I found a bug in multilanguage sites with url prefix activated.
uc_referer_check in uc_store.module is not able to validate the referer correctly as it's not taking into account the language url prefix, therefore not validating the order review and sending an empty cart error to the user.
The user can not complete the checkout if they are in an alternate site language.
I made a quick fix but it's not a very elegant solution.
Comment | File | Size | Author |
---|---|---|---|
#1 | ubercart-i18n_urls-1399558-1.patch | 703 bytes | victorcoder |
Comments
Comment #1
victorcoder CreditAttribution: victorcoder commentedComment #3
longwaveI would like to see this removed entirely in #273574: Reduce HTTP_REFERER checks. As noted this isn't exactly elegant (but neither was the original code).
Comment #4
mike24 CreditAttribution: mike24 commentedI installed the 6.x-2.10 and this bug seems still applicable. Is there an estimated fixing date ?
Comment #5
longwavePlease test the patch in #273574-38: Reduce HTTP_REFERER checks which removes the referer checks and should solve this bug.
Comment #6
longwaveClosing as duplicate of #273574: Reduce HTTP_REFERER checks