FileSystemInterface::INSECURE_EXTENSIONS

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/File/FileSystemInterface.php \Drupal\Core\File\FileSystemInterface::INSECURE_EXTENSIONS
  2. 11.x core/lib/Drupal/Core/File/FileSystemInterface.php \Drupal\Core\File\FileSystemInterface::INSECURE_EXTENSIONS

A list of insecure extensions.

See also

\Drupal\Core\File\FileSystemInterface::INSECURE_EXTENSION_REGEX

File

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

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',
  'htaccess',
  'phtml',
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.