When viewing the cart checkout page using https, the credit card images are still loaded using http. This is because the images use absolute paths not beginning with a protocol, e.g. '/sites/default/modules/ubercart/payment/uc_credit/images/visa.gif'. This causes the browser to report that some content on the page is insecure, scaring users away from entering credit card information.

Comments

longwave’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Absolute paths with no protocol should be loaded using the same protocol as the page itself, so if the page is https all paths like this should be loaded over https as well?

Can you link to a site which demonstrates this problem?

paulmckibben’s picture

Category: support » bug
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new1003 bytes

Here is a patch that is working for me. I am using drupal's url() function, with aboslute=true, to ensure the protocol is included in the image URL.

paulmckibben’s picture

Actually, absolute paths DO NOT use the same protocol. This is a known issue. See http://support.internetconnection.net/THE_WWW/Absolute_and_Relative_File...

The site in question is https://www.babynamewizard.com. Go through the process to purchase a membership and see the checkout page.

paulmckibben’s picture

Status: Needs review » Needs work

Oops, the uc_paypal module has the same problem. I'm working on a new patch that will include a fix for both.

paulmckibben’s picture

Status: Needs work » Needs review
StatusFileSize
new2.29 KB

New patch attached, addressing both uc_credit and uc_paypal.

longwave’s picture

If we're going to change these at all they should be reworked to use theme('image', ...) instead of hardcoding <img> tags.

longwave’s picture

Status: Needs review » Patch (to be ported)

This change was already made in D7 in #658176-21: Remove inline CSS, let's do the same in 6.x.

http://drupal.org/files/658176-inline-css-payment.patch

longwave’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.