mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
add CSRF compliance
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@196 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
d262824fbf
commit
d58d152ea7
@ -160,6 +160,9 @@ function plugin_init_example() {
|
|||||||
'stat.php?other' => 'New stats 2',);
|
'stat.php?other' => 'New stats 2',);
|
||||||
|
|
||||||
$PLUGIN_HOOKS['post_init']['example'] = 'plugin_example_postinit';
|
$PLUGIN_HOOKS['post_init']['example'] = 'plugin_example_postinit';
|
||||||
|
|
||||||
|
// CSRF compliance
|
||||||
|
$PLUGIN_HOOKS['csrf_compliant']['example'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user