Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Faster HTTPS check

  • Loading branch information...
commit 85042aa77b9b4d489ef8c813b826c9886fa44464 1 parent 8fdf0d0
unknown authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  catalog/includes/functions/general.php
View
2  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
}
Please sign in to comment.
Something went wrong with that request. Please try again.