Update ENV variable for each request in Safe jail (#597)

This commit is contained in:
Clément Oudot 2013-07-25 13:13:48 +00:00
parent 6447bce9bd
commit ec35b64736

View File

@ -749,9 +749,9 @@ sub buildHiddenForm {
# Build hidden input HTML code
$val .=
'<input type="hidden" name="'
. $_
. '" id="'
'<input type="hidden" name="'
. $_
. '" id="'
. $_
. '" value="'
. $self->{portalHiddenFormValues}->{$_} . '" />';
@ -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;
}