| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total |  | n/a | 0 / 0 |  | n/a | 0 / 0 | CRAP |  | n/a | 0 / 0
Publisher |  | n/a | 0 / 0 |  | n/a | 0 / 0 | 0 |  | n/a | 0 / 0

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