From 43d1b71d4db0c65066bbb4bd5087fc4ce3d80b9e Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Tue, 19 Apr 2011 22:38:24 +0000 Subject: [PATCH] smarty.inc.php: - cleanup flash messages after displaying them This fixes https://sourceforge.net/tracker/?func=detail&aid=3232174&group_id=191583&atid=937964 reported by john doe (johndoe64@SF) git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1048 a1433add-5e2c-0410-b055-b7f2511e0802 --- smarty.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/smarty.inc.php b/smarty.inc.php index a3e189ee..5a1d818f 100644 --- a/smarty.inc.php +++ b/smarty.inc.php @@ -28,6 +28,7 @@ class PFASmarty { public function display($template) { $this->template->display($template); + unset($_SESSION['flash']); # cleanup flash messages } /** * Recursive cleaning of data, using htmlentities - this assumes we only ever output to HTML and we're outputting in UTF-8 charset