Todo: protection faille CSRF !!!
This commit is contained in:
parent
0bd1156782
commit
2fd861ab7d
@ -31,7 +31,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
$langs->load("admin");
|
||||
|
||||
//Todo protection faille CSRF !!!
|
||||
if (!eregi(DOL_MAIN_URL_ROOT, $_SERVER['HTTP_REFERER']))
|
||||
if (! empty($_SERVER['HTTP_REFERER']) && !eregi(DOL_MAIN_URL_ROOT, $_SERVER['HTTP_REFERER']))
|
||||
accessforbidden();
|
||||
|
||||
if (!$user->admin)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user