X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.xsrf_token_field.php;h=6e9ae76d638c30ea5d69abc34abfecd3f0928885;hb=7e001f68b7928d80ccf32b8a8bca55d304476d3e;hp=28f09b80811c72908ce349126d323e6a8f44b57f;hpb=2fe96c5414e00fc2af8df38f379a02166a563a7d;p=platal.git diff --git a/plugins/function.xsrf_token_field.php b/plugins/function.xsrf_token_field.php index 28f09b8..6e9ae76 100644 --- a/plugins/function.xsrf_token_field.php +++ b/plugins/function.xsrf_token_field.php @@ -1,6 +1,6 @@ '; + if (S::has('xsrf_token')) { + return '
'; } return ''; }