Project

General

Profile

Fehler #157

Not work on 2003 https port

Added by Ocisp 87 over 4 years ago. Updated over 3 years ago.

Status:
Neu
Priority:
Dringend
Category:
Bug
Target version:
-
eXtplorer Version:
2.1.4
Joomla! Version:
none

Description

The file manager didn't work on the port 2003 with SSL or Autosigned certificate.

https-http.png (26.4 KB) https-http.png Ekevoo Duma, 10/17/2014 03:07 PM

History

#1 Updated by Ekevoo Duma almost 4 years ago

Also affects me. See attachment for probable cause.

#2 Updated by Sören Eberhardt-Biermann over 3 years ago

In the file /include/init.php, lines 71 ..
replace

if ($_SERVER['SERVER_PORT'] == 443 ) {
    $GLOBALS["script_name"] = "https://" . $GLOBALS['__SERVER']['HTTP_HOST'] . $GLOBALS['__SERVER']["PHP_SELF"];
    $GLOBALS['home_url']    = "https://" . $GLOBALS['__SERVER']['HTTP_HOST'] . dirname($GLOBALS['__SERVER']["PHP_SELF"]);
} else {
    $GLOBALS["script_name"] = "http://"  . $GLOBALS['__SERVER']['HTTP_HOST'] . $GLOBALS['__SERVER']["PHP_SELF"];
    $GLOBALS['home_url']    = "http://"  . $GLOBALS['__SERVER']['HTTP_HOST'] . dirname($GLOBALS['__SERVER']["PHP_SELF"]);
}

with

$GLOBALS["script_name"] = "//" . $GLOBALS['__SERVER']['HTTP_HOST'] . $GLOBALS['__SERVER']["PHP_SELF"];
$GLOBALS['home_url']    = "//" . $GLOBALS['__SERVER']['HTTP_HOST'] . dirname($GLOBALS['__SERVER']["PHP_SELF"]);

that should fix it?

Also available in: Atom PDF