FileSystemInterface::INSECURE_EXTENSION_REGEX

Same name in other branches
  1. 9 core/lib/Drupal/Core/File/FileSystemInterface.php \Drupal\Core\File\FileSystemInterface::INSECURE_EXTENSION_REGEX
  2. 10 core/lib/Drupal/Core/File/FileSystemInterface.php \Drupal\Core\File\FileSystemInterface::INSECURE_EXTENSION_REGEX

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 62

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|htaccess|phtml)(\\.|$)/i';

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