phpBB

Code Changes

File: phpbb/auth/provider/apache.php

  Unmodified   Added   Modified   Removed
Line 73Line 73
	 */
public function init()
{

	 */
public function init()
{

		if (!$this->request->is_set('PHP_AUTH_USER', request_interface::SERVER) || $this->user->data['username'] !== htmlspecialchars_decode($this->request->server('PHP_AUTH_USER'), ENT_COMPAT))

		if (!$this->request->is_set('PHP_AUTH_USER', request_interface::SERVER) || $this->user->data['username'] !== html_entity_decode($this->request->server('PHP_AUTH_USER'), ENT_COMPAT))

		{
return $this->language->lang('APACHE_SETUP_BEFORE_USE');
}

		{
return $this->language->lang('APACHE_SETUP_BEFORE_USE');
}

Line 113Line 113
			);
}


			);
}


		$php_auth_user = htmlspecialchars_decode($this->request->server('PHP_AUTH_USER'), ENT_COMPAT);
$php_auth_pw = htmlspecialchars_decode($this->request->server('PHP_AUTH_PW'), ENT_COMPAT);

		$php_auth_user = html_entity_decode($this->request->server('PHP_AUTH_USER'), ENT_COMPAT);
$php_auth_pw = html_entity_decode($this->request->server('PHP_AUTH_PW'), ENT_COMPAT);


if (!empty($php_auth_user) && !empty($php_auth_pw))
{


if (!empty($php_auth_user) && !empty($php_auth_pw))
{

Line 180Line 180
			return array();
}


			return array();
}


		$php_auth_user = htmlspecialchars_decode($this->request->server('PHP_AUTH_USER'), ENT_COMPAT);
$php_auth_pw = htmlspecialchars_decode($this->request->server('PHP_AUTH_PW'), ENT_COMPAT);

		$php_auth_user = html_entity_decode($this->request->server('PHP_AUTH_USER'), ENT_COMPAT);
$php_auth_pw = html_entity_decode($this->request->server('PHP_AUTH_PW'), ENT_COMPAT);


if (!empty($php_auth_user) && !empty($php_auth_pw))
{


if (!empty($php_auth_user) && !empty($php_auth_pw))
{