Commit 5c71e911 authored by Falko Timme's avatar Falko Timme
Browse files

- Fixed FS#2399.

parent b889edb3
...@@ -2299,8 +2299,8 @@ class apache2_plugin { ...@@ -2299,8 +2299,8 @@ class apache2_plugin {
foreach($ini_settings as $ini_setting){ foreach($ini_settings as $ini_setting){
list($key, $value) = explode('=', $ini_setting); list($key, $value) = explode('=', $ini_setting);
if($value){ if($value){
$value = escapeshellcmd(trim($value)); $value = trim($value);
$key = escapeshellcmd(trim($key)); $key = trim($key);
switch (strtolower($value)) { switch (strtolower($value)) {
case '0': case '0':
// PHP-FPM might complain about invalid boolean value if you use 0 // PHP-FPM might complain about invalid boolean value if you use 0
......
...@@ -1904,8 +1904,8 @@ class nginx_plugin { ...@@ -1904,8 +1904,8 @@ class nginx_plugin {
foreach($ini_settings as $ini_setting){ foreach($ini_settings as $ini_setting){
list($key, $value) = explode('=', $ini_setting); list($key, $value) = explode('=', $ini_setting);
if($value){ if($value){
$value = escapeshellcmd(trim($value)); $value = trim($value);
$key = escapeshellcmd(trim($key)); $key = trim($key);
switch (strtolower($value)) { switch (strtolower($value)) {
case '0': case '0':
// PHP-FPM might complain about invalid boolean value if you use 0 // PHP-FPM might complain about invalid boolean value if you use 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment