forked from Korbs/4get
Merge pull request 'trim values from env' (#25) from feature/fix_gen_config into master
Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/25 hot
This commit is contained in:
commit
799916cfb4
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ $fourget_env = array_filter($env, function($v, $k) {
|
||||||
|
|
||||||
foreach($fourget_env as $key => $val) {
|
foreach($fourget_env as $key => $val) {
|
||||||
$target_key = preg_replace('/^FOURGET_/', '', $key);
|
$target_key = preg_replace('/^FOURGET_/', '', $key);
|
||||||
$config[$target_key] = $val;
|
$config[$target_key] = trim($val, '\'"');
|
||||||
};
|
};
|
||||||
|
|
||||||
function type_to_string($n) {
|
function type_to_string($n) {
|
||||||
|
|
Reference in a new issue