projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'origin/core-1.0.0' into core
[platal.git]
/
plugins
/
function.xsrf_token_field.php
diff --git
a/plugins/function.xsrf_token_field.php
b/plugins/function.xsrf_token_field.php
index
8eb2430
..
8bfe02b
100644
(file)
--- a/
plugins/function.xsrf_token_field.php
+++ b/
plugins/function.xsrf_token_field.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
8
Polytechnique.org *
+ * Copyright (C) 2003-200
9
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-21,7
+21,7
@@
function smarty_function_xsrf_token_field($params, &$smarty) {
if (S::has('xsrf_token')) {
function smarty_function_xsrf_token_field($params, &$smarty) {
if (S::has('xsrf_token')) {
- return '<
input type="hidden" name="token" value="' . S::v('xsrf_token') . '" /
>';
+ return '<
div style="display: none"><input type="hidden" name="token" value="' . S::v('xsrf_token') . '" /></div
>';
}
return '';
}
}
return '';
}