maybe php fix
This commit is contained in:
@@ -441,8 +441,14 @@ async function handleCGI(executable, cgi_file, socket, request_headers, vault, s
|
||||
delete env['PATH_TRANSLATED'];
|
||||
}
|
||||
|
||||
|
||||
const isWindows = process.platform === 'win32';
|
||||
let options = { 'cwd': vault, 'env': env, 'timeout': 120000, windowsHide: true, 'uid': process.getuid(), 'gid': process.getgid(), 'stdio': 'overlapped' };
|
||||
if (isWindows) {
|
||||
options.windowsHide = true;
|
||||
delete options.uid;
|
||||
delete options.gid;
|
||||
}
|
||||
|
||||
if (!minisrv_config.config.debug_flags.quiet) (executable == cgi_file) ? console.debug(" * Executing CGI:", executable) : console.debug(" * Executing CGI:", executable, cgi_file);
|
||||
const cgi = (executable == cgi_file) ? spawn(cgi_file, options=options) : spawn(executable, [cgi_file], options)
|
||||
let data = "";
|
||||
|
||||
@@ -86,10 +86,6 @@ function checkScopeErrors(file) {
|
||||
"message": "new Buffer() is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."
|
||||
},
|
||||
// Node.js specific deprecations
|
||||
{
|
||||
"selector": "MemberExpression[object.name='process'][property.name='env'][computed=false]",
|
||||
"message": "Consider using process.env with proper defaults or validation."
|
||||
},
|
||||
{
|
||||
"selector": "CallExpression[callee.type='MemberExpression'][callee.object.name='fs'][callee.property.name='exists']",
|
||||
"message": "fs.exists() is deprecated. Use fs.existsSync() or fs.access() instead."
|
||||
|
||||
Reference in New Issue
Block a user