Przeglądaj źródła

trim values from env

throwaway 2 lat temu
rodzic
commit
d465bb9cb8
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {