Skip to content

Commit

Permalink
Remove quotes from environment variables. Fixes #198
Browse files Browse the repository at this point in the history
  • Loading branch information
pinknet committed Jun 26, 2024
1 parent 421fe00 commit d24f888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function __construct($config=[]) {
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
}
}

Expand Down

0 comments on commit d24f888

Please sign in to comment.