phpBB

Code Changes

File: phpbb/install/module/obtain_data/task/obtain_server_data.php

  Unmodified   Added   Modified   Removed
Line 65Line 65
			$server_name = substr($server_name, 0, strpos($server_name, ':'));
}


			$server_name = substr($server_name, 0, strpos($server_name, ':'));
}


		$script_path = html_entity_decode($this->io_handler->get_server_variable('PHP_SELF'), ENT_COMPAT);

		$script_path = html_entity_decode($this->io_handler->get_server_variable('REQUEST_URI'), ENT_COMPAT);


if (!$script_path)
{


if (!$script_path)
{

			$script_path = html_entity_decode($this->io_handler->get_server_variable('REQUEST_URI'), ENT_COMPAT);

			$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);