Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

BUG: Using of undefined configuration constant


atokarev

Recommended Posts

Piece of code from the /admin/includes/functions/html_output.php:

 

if ($connection == 'NONSSL') {

$link = HTTP_SERVER . DIR_WS_ADMIN;

} elseif ($connection == 'SSL') {

if (ENABLE_SSL == 'true') {

$link = HTTPS_SERVER . DIR_WS_ADMIN;

} else {

$link = HTTP_SERVER . DIR_WS_ADMIN;

}

} else {

die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

}

 

It tries to check if ENABLE_SSL is true, but ENABLE_SSL is not defined in the configuration file of the admin area.

One more undefined constant is HTTPS_SERVER.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...