[Fusionforge-commits] FusionForge branch master updated. 7265ae0b18117f6cae2c4bbd72fd452db92ab744

Franck Villaume nerville at fusionforge.org
Fri Apr 18 14:34:07 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  7265ae0b18117f6cae2c4bbd72fd452db92ab744 (commit)
      from  908fb5543d0e218a60bcd4dd8680e70032875acc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7265ae0b18117f6cae2c4bbd72fd452db92ab744
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Fri Apr 18 14:33:02 2014 +0200

    store feedback, warning_msg, error_msg in cookie rather in URL

diff --git a/src/common/include/pre.php b/src/common/include/pre.php
index 4357a9e..cfc07cf 100644
--- a/src/common/include/pre.php
+++ b/src/common/include/pre.php
@@ -306,10 +306,12 @@ if (getenv('FUSIONFORGE_NO_DB') != 'true' and forge_get_config('database_name')
 	setup_gettext_from_context();
 }
 
-
 $feedback = htmlspecialchars(getStringFromRequest('feedback', $feedback));
 $error_msg = htmlspecialchars(getStringFromRequest('error_msg', $error_msg));
 $warning_msg = htmlspecialchars(getStringFromRequest('warning_msg', $warning_msg));
+if (empty($feedback) && empty($error_msg) && empty($warning_msg)) {
+	util_init_messages();
+}
 
 /*
 RESERVED VARIABLES
diff --git a/src/common/include/session.php b/src/common/include/session.php
index 3dbace8..10dac46 100644
--- a/src/common/include/session.php
+++ b/src/common/include/session.php
@@ -424,6 +424,7 @@ function session_redirect_uri($loc) {
  * @param  string $loc    Absolute path within the site
  */
 function session_redirect($loc) {
+	util_save_messages();
 	session_redirect_uri(util_make_url($loc));
 	exit;
 }

-----------------------------------------------------------------------

Summary of changes:
 src/common/include/pre.php     |    4 +++-
 src/common/include/session.php |    1 +
 2 files changed, 4 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list