Update ENV variable for each request in Safe jail (#597)
This commit is contained in:
parent
6447bce9bd
commit
ec35b64736
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user