mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 15:17:16 +01:00
[feature/request-class] Remove useless condition
PHPBB3-9716
This commit is contained in:
parent
76aa24e6b7
commit
d1a0dfbafb
@ -384,7 +384,7 @@ class session
|
||||
$referer_valid = true;
|
||||
|
||||
// we assume HEAD and TRACE to be foul play and thus only whitelist GET
|
||||
if (@$config['referer_validation'] && $request->server('REQUEST_METHOD') && strtolower($request->server('REQUEST_METHOD')) !== 'get')
|
||||
if (@$config['referer_validation'] && strtolower($request->server('REQUEST_METHOD')) !== 'get')
|
||||
{
|
||||
$referer_valid = $this->validate_referer($check_referer_path);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user