phpBB

Code Changes

File: phpbb/request/request.php

  Unmodified   Added   Modified   Removed
Line 275Line 275
	*/
public function file($form_name)
{

	*/
public function file($form_name)
{

		return $this->variable($form_name, array('name' => 'none'), false, \phpbb\request\request_interface::FILES);

		return $this->variable($form_name, array('name' => 'none'), true, \phpbb\request\request_interface::FILES);

	}

/**

	}

/**

Line 325Line 325
	*/
public function is_secure()
{

	*/
public function is_secure()
{

		return $this->server('HTTPS') == 'on';



		$https = $this->server('HTTPS');
$https = $this->server('HTTP_X_FORWARDED_PROTO') === 'https' ? 'on' : $https;
return !empty($https) && $https !== 'off';

	}

/**

	}

/**

Line 415Line 417
	public function get_super_global($super_global = \phpbb\request\request_interface::REQUEST)
{
return $this->input[$super_global];

	public function get_super_global($super_global = \phpbb\request\request_interface::REQUEST)
{
return $this->input[$super_global];

 
	}

/**
* {@inheritdoc}
*/
public function escape($var, $multibyte)
{
if (is_array($var))
{
$result = array();
foreach ($var as $key => $value)
{
$this->type_cast_helper->set_var($key, $key, gettype($key), $multibyte);
$result[$key] = $this->escape($value, $multibyte);
}
$var = $result;
}
else
{
$this->type_cast_helper->set_var($var, $var, 'string', $multibyte);
}

return $var;

	}
}


	}
}