From d58d152ea731f497b5591df45c3dce1741e494bb Mon Sep 17 00:00:00 2001 From: moyooo Date: Tue, 3 Jul 2012 09:32:12 +0000 Subject: [PATCH] add CSRF compliance git-svn-id: https://forge.glpi-project.org/svn/example/trunk@196 349b9182-4a13-0410-896f-e5e9767dd1b3 --- setup.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.php b/setup.php index 118cc52..eb81d40 100755 --- a/setup.php +++ b/setup.php @@ -160,6 +160,9 @@ function plugin_init_example() { 'stat.php?other' => 'New stats 2',); $PLUGIN_HOOKS['post_init']['example'] = 'plugin_example_postinit'; + + // CSRF compliance + $PLUGIN_HOOKS['csrf_compliant']['example'] = true; }