Nov 2, 2018
Gray

Piwigo adds :80 to URL for SSL traffic

(from https://github.com/xbgmsharp/piwigo-openstreetmap/issues/106)

Piwigo adds “:80” to the URL of some SSL/https addresses, similar to this:
https://www.XXXXXX.sr:80/photos/picture.php?/7784/category

Here’s how to fix
In the following file functions_url.inc.php:

First, backup this file. Next, comment out the part of function which does the port finding routine, resulting in following lines in functions_url.inc.php file (around lines 70-81):

{
$url .= $_SERVER['HTTP_HOST']; 
// if ( (!$is_https && $_SERVER['SERVER_PORT'] != 80)
// ||($is_https && $_SERVER['SERVER_PORT'] != 443))
// {
// $url_port = ':'.$_SERVER['SERVER_PORT'];
// if (strrchr($url, ':') != $url_port)
// {
// $url .= $url_port;
// }
// }
}

Leave a comment

 
Oklahoma Sports | Game Photos
www.game-photos.com
Oklahoma college and high school sports

They said it . . .

"The entire sum of existence is the magic of being needed by one person."
- V. Putnam


"Nobody in football should be called a genius. A genius is a guy like Norman Einstein."
- Joe Theismann


"The early bird gets the worm, but the second mouse gets the cheese."
- Unknown