<?php
/***************************************************************************
- * Copyright (C) 2003-2008 Polytechnique.org *
+ * Copyright (C) 2003-2009 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
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 '';
}