Add message to avoid to search

This commit is contained in:
Laurent Destailleur 2009-05-21 17:45:13 +00:00
parent 8332aaa952
commit 9d57b9ec71

View File

@ -111,7 +111,9 @@ 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 ? Yes we can...
//print 'HTTP_POST='.$_SERVER['HTTP_HOST'].' HTTP_REFERER='.$_SERVER['HTTP_REFERER'];
print 'Access refused by CSRF protection in main.inc.php.';
exit;
}
// This is to make Dolibarr working with Plesk