Disable files autoloading for scripts to avoid untrusted code execution at runtime (#10373)
parent
8f1b3d21db
commit
71ab70d847
|
@ -509,10 +509,6 @@ class EventDispatcher
|
|||
$this->loader = $generator->createLoader($map, $this->composer->getConfig()->get('vendor-dir'));
|
||||
$this->loader->register(false);
|
||||
|
||||
foreach ($map['files'] as $fileIdentifier => $file) {
|
||||
\Composer\Autoload\composerRequire($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $scripts[$event->getName()];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue