[Bug] SERVER_LONG_DESCRIPTION config option is incorrectly parsed as an array of strings in Docker #12
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Assuming I've got it correct, this bug was introduced with
e31b9494af
with this code:if(gettype($from_config[$key]) != gettype($val) && !is_numeric($val)) {
(gen_config.php line 68)
Basically, when setting
FOURGET_SERVER_LONG_DESCRIPTION
in Docker, gen_config.php will incorrectly parse this environment variable (a string) into an array of strings.I believe this happens because in the default configuration,
SERVER_LONG_DESCRIPTION
is set tonull
, so it assumes the env variable needs to be parsed due to a type mismatch check (null vs string). I'm not a PHP expert though so I'm just guessing here.A simple workaround would be to just change the default config, so that
SERVER_LONG_DESCRIPTION
is some generic example string, much likeSERVER_SHORT_DESCRIPTION
.Something similar is likely happening to
MARGINALIA_API_KEY
, but I don't use that at all so I can't double check.throwaway should've fixed it, thank you for your time