Permalink
Browse files

Faster HTTPS check

  • Loading branch information...
unknown unknown
unknown authored and unknown committed Nov 18, 2011
1 parent 8fdf0d0 commit 85042aa77b9b4d489ef8c813b826c9886fa44464
Showing with 1 addition and 1 deletion.
  1. +1 −1 catalog/includes/functions/general.php
@@ -36,7 +36,7 @@ function tep_redirect($url) {
tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
}
- if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page
+ if ( (ENABLE_SSL == 'true') && ($_ENV['HTTPS'] == 'on') ) { // We are loading an SSL page
if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url
$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL
}

0 comments on commit 85042aa

Please sign in to comment.