You are here

constant FILE_INSECURE_EXTENSION_REGEX in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/file/file.module \FILE_INSECURE_EXTENSION_REGEX

The regex pattern used when checking for insecure file types.

Deprecated

in drupal:9.2.0 and is removed from drupal:10.0.0. Use \Drupal\Core\File\FileSystemInterface::INSECURE_EXTENSION_REGEX.

See also

https://www.drupal.org/node/3032541

File

core/modules/file/file.module, line 36
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

define('FILE_INSECURE_EXTENSION_REGEX', FileSystemInterface::INSECURE_EXTENSION_REGEX);