mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 08:12:17 +09:00
Consistently use new domain system for URL::isInternalUrl() and checkCSRF()
This commit is contained in:
parent
f1608ad3a9
commit
af7309b807
3 changed files with 6 additions and 23 deletions
|
|
@ -310,10 +310,10 @@ class Security
|
|||
if (!$referer)
|
||||
{
|
||||
$referer = strval($_SERVER['HTTP_REFERER']);
|
||||
if ($referer === '')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (strval($referer) === '')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return URL::isInternalURL($referer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue