From 0f603d772c5bcf90d9bad5aca571cbe05fc76af9 Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Tue, 29 May 2012 09:17:36 -0400 Subject: [PATCH] - Fixed bug for custom php.ini settings for PHP-FPM where "1" and "on" were interpreted as "off". --- server/plugins-available/nginx_plugin.inc.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/plugins-available/nginx_plugin.inc.php b/server/plugins-available/nginx_plugin.inc.php index af5972e..9d444f5 100644 --- a/server/plugins-available/nginx_plugin.inc.php +++ b/server/plugins-available/nginx_plugin.inc.php @@ -1662,12 +1662,12 @@ $value = escapeshellcmd(trim($value)); $key = escapeshellcmd(trim($key)); switch (strtolower($value)) { - case 'on': - case 'off': - case '1': case '0': // PHP-FPM might complain about invalid boolean value if you use 0 $value = 'off'; + case '1': + case 'on': + case 'off': case 'true': case 'false': case 'yes': -- Gitblit v1.9.1