diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index c3e9cf37f8588db00392a5aa2ca435ef8dbaec5c..188b12f1e93528cef01e3fb77ae45aa0dd9a2481 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -2299,8 +2299,8 @@ class apache2_plugin {
 				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
diff --git a/server/plugins-available/nginx_plugin.inc.php b/server/plugins-available/nginx_plugin.inc.php
index 056d83a42e247d06a475c2b43d4cd3c546e6df0a..310a18e068861e0a92d5869561e4f120be54da19 100644
--- a/server/plugins-available/nginx_plugin.inc.php
+++ b/server/plugins-available/nginx_plugin.inc.php
@@ -1904,8 +1904,8 @@ class nginx_plugin {
 				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