Home » HTML » Pager » Bug #7936
pager seems not to work with SSL
Details
| Submitted | 2006-06-19 10:19 UTC |
|---|---|
| From | msilvoso at internet dot lu |
| Assigned | quipo |
| Status | Closed |
| Package | Pager |
| PHP Version | Irrelevant |
| OS | irrevelant |
| Roadmaps | (Not assigned) |
Comments
[2006-06-19 10:19 UTC] msilvoso at internet dot lu
Description:
------------
The pager doesn't seem to work with SSL.
Instead of https links it keeps making http link.
http is hardcoded in the file common.php
Test script:
---------------
Part that is buggy beginning of common.php:
define('CURRENT_PATHNAME', 'http://'.$_SERVER['HTTP_HOST'].str_replace('\\',
'/', $_SERVER['PHP_SELF']));
} else {...
I changed it by
if ($_SERVER['HTTPS'])
{
$http="https";
}
else
{
$http="http";
}
define('CURRENT_FILENAME', '');
define('CURRENT_PATHNAME', $http.'://'.$_SERVER['HTTP_HOST'].str_replace('\\', '/', $_SERVER['PHP_SELF']));