Explorar o código

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
lolcat %!s(int64=2) %!d(string=hai) anos
pai
achega
799916cfb4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docker/gen_config.php

+ 1 - 1
docker/gen_config.php

@@ -13,7 +13,7 @@ $fourget_env = array_filter($env, function($v, $k) {
 
 foreach($fourget_env as $key => $val)  {
         $target_key = preg_replace('/^FOURGET_/', '', $key);
-        $config[$target_key] = $val;
+        $config[$target_key] = trim($val, '\'"');
 };
 
 function type_to_string($n) {