You are here

public constant FileSystemInterface::INSECURE_EXTENSIONS in Drupal 9

A list of insecure extensions.

See also

\Drupal\Core\File\FileSystemInterface::INSECURE_EXTENSION_REGEX

File

core/lib/Drupal/Core/File/FileSystemInterface.php, line 40

Class

FileSystemInterface
Provides an interface for helpers that operate on files and stream wrappers.

Namespace

Drupal\Core\File

Code

public const INSECURE_EXTENSIONS = [
  'phar',
  'php',
  'pl',
  'py',
  'cgi',
  'asp',
  'js',
];