ftimme
2013-07-02 b0f7d4f3bd2dbd5c9c90fe7d5b9597d79ad6b436
- nginx plugin: don't write commented lines to vhost.
1 files modified
6 ■■■■■ changed files
server/plugins-available/nginx_plugin.inc.php 6 ●●●●● patch | view | raw | blame | history
server/plugins-available/nginx_plugin.inc.php
@@ -2401,6 +2401,12 @@
        if(is_array($lines) && !empty($lines)){
            $linecount = sizeof($lines);
            for($h=0;$h<$linecount;$h++){
                // remove comments
                if(substr(trim($lines[$h]),0,1) == '#'){
                    unset($lines[$h]);
                    continue;
                }
                $lines[$h] = rtrim($lines[$h]);
                /*
                if(substr(ltrim($lines[$h]), 0, 8) == 'location' && strpos($lines[$h], '{') !== false && strpos($lines[$h], ';') !== false){