Line 54 | Line 54 |
---|
$server_port = $this->io_handler->get_server_variable('SERVER_PORT', 0);
// HTTP_HOST is having the correct browser url in most cases...
|
$server_port = $this->io_handler->get_server_variable('SERVER_PORT', 0);
// HTTP_HOST is having the correct browser url in most cases...
|
$server_name = strtolower(htmlspecialchars_decode($this->io_handler->get_header_variable(
| $server_name = strtolower(html_entity_decode($this->io_handler->get_header_variable(
|
'Host', $this->io_handler->get_server_variable('SERVER_NAME')
|
'Host', $this->io_handler->get_server_variable('SERVER_NAME')
|
)));
| ), ENT_COMPAT));
|
// HTTP HOST can carry a port number... if (strpos($server_name, ':') !== false)
| // HTTP HOST can carry a port number... if (strpos($server_name, ':') !== false)
|
Line 65 | Line 65 |
---|
$server_name = substr($server_name, 0, strpos($server_name, ':')); }
|
$server_name = substr($server_name, 0, strpos($server_name, ':')); }
|
$script_path = htmlspecialchars_decode($this->io_handler->get_server_variable('PHP_SELF'));
| $script_path = html_entity_decode($this->io_handler->get_server_variable('REQUEST_URI'), ENT_COMPAT);
|
if (!$script_path) {
|
if (!$script_path) {
|
$script_path = htmlspecialchars_decode($this->io_handler->get_server_variable('REQUEST_URI'));
| $script_path = html_entity_decode($this->io_handler->get_server_variable('PHP_SELF'), ENT_COMPAT);
|
}
$script_path = str_replace(array('\\', '//'), '/', $script_path);
| }
$script_path = str_replace(array('\\', '//'), '/', $script_path);
|