PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » Pager » Bug #7936

pager seems not to work with SSL

Details

Submitted2006-06-19 10:19 UTC
Frommsilvoso at internet dot lu
Assignedquipo
StatusClosed
PackagePager
PHP VersionIrrelevant
OSirrevelant
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']));