您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

29 行
806B

  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\Publisher as BasePublisher;
  4. /**
  5. * Publisher Configuration
  6. *
  7. * Defines basic security restrictions for the Publisher class
  8. * to prevent abuse by injecting malicious files into a project.
  9. */
  10. class Publisher extends BasePublisher
  11. {
  12. /**
  13. * A list of allowed destinations with a (pseudo-)regex
  14. * of allowed files for each destination.
  15. * Attempts to publish to directories not in this list will
  16. * result in a PublisherException. Files that do no fit the
  17. * pattern will cause copy/merge to fail.
  18. *
  19. * @var array<string,string>
  20. */
  21. public $restrictions = [
  22. ROOTPATH => '*',
  23. FCPATH => '#\.(s?css|js|map|html?|xml|json|webmanifest|ttf|eot|woff2?|gif|jpe?g|tiff?|png|webp|bmp|ico|svg)$#i',
  24. ];
  25. }