Fix: just use exit
This commit is contained in:
parent
06d2d2fc2f
commit
53d214fbea
@ -111,10 +111,7 @@ analyse_sql_injection($_POST);
|
||||
// The test to do is to check if referrer ($_SERVER['HTTP_REFERER']) is same web site than Dolibarr ($_SERVER['HTTP_HOST']).
|
||||
if (! defined('NOCSRFCHECK') && ! empty($_SERVER['HTTP_HOST']) && ! empty($_SERVER['HTTP_REFERER']) && ! eregi($_SERVER['HTTP_HOST'], $_SERVER['HTTP_REFERER']))
|
||||
{
|
||||
// exit; Why not using simply an exit ?
|
||||
unset($_GET);
|
||||
unset($_POST);
|
||||
unset($_REQUEST);
|
||||
exit; //Why not using simply an exit ? Yes we can...
|
||||
}
|
||||
|
||||
// This is to make Dolibarr working with Plesk
|
||||
|
||||
Loading…
Reference in New Issue
Block a user