| | |
| | | $tpl->setVar('fastcgi_starter_path',$fastcgi_starter_path); |
| | | $tpl->setVar('fastcgi_starter_script',$fastcgi_config['fastcgi_starter_script'].($data['new']['type'] == 'vhostsubdomain' ? '_web' . $data['new']['domain_id'] : '')); |
| | | $tpl->setVar('fastcgi_config_syntax',$fastcgi_config['fastcgi_config_syntax']); |
| | | $tpl->setVar('fastcgi_max_requests',$fastcgi_config['fastcgi_max_requests']); |
| | | |
| | | } else { |
| | | //remove the php fastgi starter script if available |
| | |
| | | $files = @scandir($webdavRoot); |
| | | if(is_array($files)) { |
| | | foreach($files as $file) { |
| | | if (substr($file, strlen($file) - strlen('.htdigest')) == '.htdigest' && preg_match("[a-zA-Z0-9\-_\.]",$file)) { |
| | | if (substr($file, strlen($file) - strlen('.htdigest')) == '.htdigest' && preg_match("/^[a-zA-Z0-9\-_\.]*$/",$file)) { |
| | | /* |
| | | * found a htdigest - file, so add it to webdav |
| | | */ |