PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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']));