Edit notice token error corrected

This commit is contained in:
Phyks 2013-09-26 17:36:59 +02:00
parent dbceafd606
commit dfdfa1f496
2 changed files with 6 additions and 2 deletions

6
TODO
View File

@ -1,7 +1,10 @@
Issues : Issues :
======== ========
* Check box on invoice form when modifying guests
* Regenerate token * Regenerate token
* Global paybacks
* Test fr
* Paybacks and user deletion
* Minify CSS / JS
Improvements : Improvements :
============== ==============
@ -9,5 +12,4 @@ Improvements :
* Search invoice * Search invoice
* JSON output => do index view * JSON output => do index view
* API * API
* cf TODO in files
* README file * README file

View File

@ -337,6 +337,7 @@
case 'edit_notice': case 'edit_notice':
if(isset($_POST['notice'])) { if(isset($_POST['notice'])) {
$tpl->assign('notice', htmlspecialchars($_POST['notice']));
if(check_token(600, 'settings')) { if(check_token(600, 'settings')) {
setNotice($_POST['notice']); setNotice($_POST['notice']);
@ -353,6 +354,7 @@
} }
$tpl->assign('show_settings', false); $tpl->assign('show_settings', false);
$tpl->assign('token', generate_token('settings'));
$tpl->draw('settings'); $tpl->draw('settings');
break; break;