Commit 254a4af7 authored by Falko Timme's avatar Falko Timme
Browse files

- Fixed FS#2436: nginx + php-fpm: commented out custom php.ini settings get into pool config.

parent a5b1a01b
......@@ -2381,6 +2381,10 @@ class apache2_plugin {
$ini_settings = explode("\n", $custom_php_ini_settings);
if(is_array($ini_settings) && !empty($ini_settings)){
foreach($ini_settings as $ini_setting){
$ini_setting = trim($ini_setting);
if(substr($ini_setting,0,1) == ';') continue;
if(substr($ini_setting,0,1) == '#') continue;
if(substr($ini_setting,0,2) == '//') continue;
list($key, $value) = explode('=', $ini_setting);
if($value){
$value = trim($value);
......
......@@ -1908,6 +1908,10 @@ class nginx_plugin {
$ini_settings = explode("\n", $custom_php_ini_settings);
if(is_array($ini_settings) && !empty($ini_settings)){
foreach($ini_settings as $ini_setting){
$ini_setting = trim($ini_setting);
if(substr($ini_setting,0,1) == ';') continue;
if(substr($ini_setting,0,1) == '#') continue;
if(substr($ini_setting,0,2) == '//') continue;
list($key, $value) = explode('=', $ini_setting);
if($value){
$value = trim($value);
......
Supports Markdown
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