Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

29 rindas
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. }