Skip to content

Commit 3bfb906

Browse files
committed
Fixing SMTP option (adding a special case for this uppercase option)
1 parent e44ea02 commit 3bfb906

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utils/generate_conf.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010

1111
foreach ($_SERVER as $key => $value) {
1212
if (strpos($key, 'PHP_INI_') === 0) {
13-
$iniParam = strtolower(substr($key, 8));
13+
$iniParam = substr($key, 8);
14+
if ($iniParam !== 'SMTP') {
15+
// SMTP is the only php.ini parameter that contains uppercase letters (!)
16+
$iniParam = strtolower($iniParam);
17+
}
1418
$iniParam = str_replace('__', '.', $iniParam);
1519
// Let's protect the value if this is a string.
1620
if (!is_numeric($value) && $iniParam !== 'error_reporting') {

0 commit comments

Comments
 (0)