ftimme
2011-09-20 1d6d38ce488ea4d4421eea20fdc3baef43a0b30f
- Hide Nginx Directives field - has no function yet.
- Added escapeshellcmd to some paths in nginx_plugin.inc.php.
2 files modified
8 ■■■■ changed files
interface/web/sites/templates/web_domain_advanced.htm 2 ●●● patch | view | raw | blame | history
server/plugins-available/nginx_plugin.inc.php 6 ●●●● patch | view | raw | blame | history
interface/web/sites/templates/web_domain_advanced.htm
@@ -32,7 +32,7 @@
          <label for="apache_directives">{tmpl_var name='apache_directives_txt'}</label>
          <textarea name="apache_directives" id="apache_directives" rows='10' cols='50' style="width:400px;">{tmpl_var name='apache_directives'}</textarea>
      </div>
      <div class="ctrlHolder nginx">
      <div class="ctrlHolder apache">
          <label for="nginx_directives">{tmpl_var name='nginx_directives_txt'}</label>
          <textarea name="nginx_directives" id="nginx_directives" rows='10' cols='50' style="width:400px;">{tmpl_var name='nginx_directives'}</textarea>
      </div>
server/plugins-available/nginx_plugin.inc.php
@@ -1101,7 +1101,7 @@
            $tpl->setVar('fpm_port', $web_config['php_fpm_start_port'] + $data['new']['domain_id']);
            $tpl->setVar('fpm_user', $data['new']['system_user']);
            $tpl->setVar('fpm_group', $data['new']['system_group']);
            $php_open_basedir = ($data['new']['php_open_basedir'] == '')?$data['new']['document_root']:$data['new']['php_open_basedir'];
            $php_open_basedir = ($data['new']['php_open_basedir'] == '')?escapeshellcmd($data['new']['document_root']):escapeshellcmd($data['new']['php_open_basedir']);
            $tpl->setVar('php_open_basedir', $php_open_basedir);
            if($php_open_basedir != ''){
                $tpl->setVar('enable_php_open_basedir', '');
@@ -1121,8 +1121,8 @@
                    foreach($ini_settings as $ini_setting){
                            list($key, $value) = explode('=', $ini_setting);
                            if($value){
                                $value = trim($value);
                                $key = trim($key);
                                $value = escapeshellcmd(trim($value));
                                $key = escapeshellcmd(trim($key));
                                switch (strtolower($value)) {
                                    case 'on':
                                    case 'off':