fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-06-16 11:30 am

[dw-free] Credit Card Page using http (not https) just shows a link

[commit: http://hg.dwscoalition.org/dw-free/rev/ce3f5d35d0c3]

http://bugs.dwscoalition.org/show_bug.cgi?id=3739

Redirect, rather than showing the link.

Patch by [personal profile] fu.

Files modified:
  • htdocs/shop/entercc.bml
--------------------------------------------------------------------------------
diff -r 29efd992930f -r ce3f5d35d0c3 htdocs/shop/entercc.bml
--- a/htdocs/shop/entercc.bml	Thu Jun 16 15:44:19 2011 +0800
+++ b/htdocs/shop/entercc.bml	Thu Jun 16 19:05:32 2011 +0800
@@ -34,7 +34,7 @@
 
     # now, redirect them to the SSL page just in case they got here without SSL
     # actually being on...
-    return "$LJ::SSLROOT/shop/entercc"
+    return BML::redirect( "$LJ::SSLROOT/shop/entercc" )
         unless $LJ::IS_DEV_SERVER || $LJ::IS_SSL;
 
     $title = $ML{'.title'};
--------------------------------------------------------------------------------