From 41a74e15e12f17774846091645748f5c408ae55f Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Wed, 12 Sep 2012 07:38:41 -0400
Subject: [PATCH] Fixed: Thrown php warning - added check if parameter is an array in validator

---
 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 056d83a..e5a37ff 100644
--- a/server/plugins-available/nginx_plugin.inc.php
+++ b/server/plugins-available/nginx_plugin.inc.php
@@ -1051,7 +1051,7 @@
 			unset($client);
 			unset($aa_search);
 			unset($aa_replace);
-			$server_alias[] .= $auto_alias;
+			$server_alias[] .= $auto_alias.' ';
 		}
 		
 		// get alias domains (co-domains and subdomains)
@@ -1904,8 +1904,8 @@
 				foreach($ini_settings as $ini_setting){
 						list($key, $value) = explode('=', $ini_setting);
 						if($value){
-							$value = escapeshellcmd(trim($value));
-							$key = escapeshellcmd(trim($key));
+							$value = trim($value);
+							$key = trim($key);
 							switch (strtolower($value)) {
 								case '0':
 									// PHP-FPM might complain about invalid boolean value if you use 0

--
Gitblit v1.9.1