mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-09 01:26:32 +02:00
Remove quotes from environment variables. Fixes #198
This commit is contained in:
@@ -89,7 +89,7 @@ class IFM {
|
||||
if (($value = getenv('IFM_' . strtoupper($key))) !== false) {
|
||||
if (is_numeric($value))
|
||||
$value = intval($value);
|
||||
$this->config[$key] = $value;
|
||||
$this->config[$key] = trim($value, implode(['"', "'"])); // remove quotes from env vars
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user