Todo: protection faille CSRF !!!
This commit is contained in:
parent
c75a724693
commit
0bd1156782
@ -30,9 +30,12 @@ require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
|||||||
|
|
||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
|
|
||||||
if (!$user->admin)
|
//Todo protection faille CSRF !!!
|
||||||
|
if (!eregi(DOL_MAIN_URL_ROOT, $_SERVER['HTTP_REFERER']))
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
|
if (!$user->admin)
|
||||||
|
accessforbidden();
|
||||||
|
|
||||||
|
|
||||||
$typeconst=array('yesno','texte','chaine');
|
$typeconst=array('yesno','texte','chaine');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user