Fix: on supprime le GET ET POST si la requete ne vient pas du serveur
This commit is contained in:
parent
db8ffae9fc
commit
3723bb350a
@ -110,7 +110,8 @@ analyse_sql_injection($_POST);
|
||||
// Security: CSRF protection
|
||||
if (! defined('NOCSRFCHECK') && ! empty($_SERVER['HTTP_REFERER']) && !eregi(DOL_MAIN_URL_ROOT, $_SERVER['HTTP_REFERER']))
|
||||
{
|
||||
return;
|
||||
unset($_GET);
|
||||
unset($_POST);
|
||||
}
|
||||
|
||||
// This is to make Dolibarr working with Plesk
|
||||
|
||||
Loading…
Reference in New Issue
Block a user