From ec35b6473684f1d5181b5abff8cf2da068fff302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Thu, 25 Jul 2013 13:13:48 +0000 Subject: [PATCH] Update ENV variable for each request in Safe jail (#597) --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm index 2f0e25e48..98bdf7867 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm @@ -749,9 +749,9 @@ sub buildHiddenForm { # Build hidden input HTML code $val .= - ''; @@ -1294,6 +1294,9 @@ sub safe { # Refresh the portal object inside it $safe->{p} = $self; + # Refresh environment variables + $safe->share_from( 'main', ['%ENV'] ); + return $safe; }