removing untranslated string for non-human entities, moving insecure notice to template, so it can remains translated

This commit is contained in:
El RIDO 2019-09-19 19:14:48 +02:00
parent 70c38db81d
commit 7c61f59dcd
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
22 changed files with 33 additions and 30 deletions

View file

@ -193,6 +193,19 @@ class Request
$this->_params[$param] : $default;
}
/**
* Get host as requested by the client
*
* @access public
* @return string
*/
public function getHost()
{
return array_key_exists('HTTP_HOST', $_SERVER) ?
htmlspecialchars($_SERVER['HTTP_HOST']) :
'localhost';
}
/**
* Get request URI
*
@ -202,8 +215,8 @@ class Request
public function getRequestUri()
{
return array_key_exists('REQUEST_URI', $_SERVER) ?
htmlspecialchars(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
htmlspecialchars(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
) : '/';
}