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
Sections
They said it . . .
Tags
5k
100k
autofocus
baseball
basketball
bicycle
bike
boat
code replacement
creek classic
focus
gas
hdr
ironmama
ironman
jamtastic
lightroom
mama
mercury
mileage
nikon
noise reduction
oil
photography
photomechanic
photo mechanic
photoshop
piwigo
running
sharpen
sharpening
soccer
soften
softening
spelling
stator
tae kwon do
Thunder
track & field
transfer
triathlon
tutorials
wakeboard
winterize
workflow