From dfdfa1f496a908824c2d90437fbc2a209de75631 Mon Sep 17 00:00:00 2001 From: Phyks Date: Thu, 26 Sep 2013 17:36:59 +0200 Subject: [PATCH] Edit notice token error corrected --- TODO | 6 ++++-- index.php | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index d358b0e..4d63d71 100755 --- a/TODO +++ b/TODO @@ -1,7 +1,10 @@ Issues : ======== -* Check box on invoice form when modifying guests * Regenerate token +* Global paybacks +* Test fr +* Paybacks and user deletion +* Minify CSS / JS Improvements : ============== @@ -9,5 +12,4 @@ Improvements : * Search invoice * JSON output => do index view * API -* cf TODO in files * README file diff --git a/index.php b/index.php index f9679f7..c75dd49 100644 --- a/index.php +++ b/index.php @@ -337,6 +337,7 @@ case 'edit_notice': if(isset($_POST['notice'])) { + $tpl->assign('notice', htmlspecialchars($_POST['notice'])); if(check_token(600, 'settings')) { setNotice($_POST['notice']); @@ -353,6 +354,7 @@ } $tpl->assign('show_settings', false); + $tpl->assign('token', generate_token('settings')); $tpl->draw('settings'); break;