You are here

public constant FileSystemInterface::INSECURE_EXTENSION_REGEX in Drupal 9

The regex pattern used when checking for insecure file types.

See also

\Drupal\Core\File\FileSystemInterface::INSECURE_EXTENSIONS

File

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

Class

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

Namespace

Drupal\Core\File

Code

public const INSECURE_EXTENSION_REGEX = '/\\.(phar|php|pl|py|cgi|asp|js)(\\.|$)/i';