-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3561462
commit 3216a21
Showing
17 changed files
with
238 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Config; | ||
|
||
use CodeIgniter\Config\BaseConfig; | ||
|
||
class CURLRequest extends BaseConfig | ||
{ | ||
/** | ||
* -------------------------------------------------------------------------- | ||
* CURLRequest Share Options | ||
* -------------------------------------------------------------------------- | ||
* | ||
* Whether share options between requests or not. | ||
* | ||
* If true, all the options won't be reset between requests. | ||
* It may cause an error request with unnecessary headers. | ||
* | ||
* @var bool | ||
*/ | ||
public $shareOptions = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Config; | ||
|
||
use CodeIgniter\Config\BaseConfig; | ||
|
||
/** | ||
* Enable/disable backward compatibility breaking features. | ||
*/ | ||
class Feature extends BaseConfig | ||
{ | ||
/** | ||
* Enable multiple filters for a route or not | ||
* | ||
* If you enable this: | ||
* - CodeIgniter\CodeIgniter::handleRequest() uses: | ||
* - CodeIgniter\Filters\Filters::enableFilters(), instead of enableFilter() | ||
* - CodeIgniter\CodeIgniter::tryToRouteIt() uses: | ||
* - CodeIgniter\Router\Router::getFilters(), instead of getFilter() | ||
* - CodeIgniter\Router\Router::handle() uses: | ||
* - property $filtersInfo, instead of $filterInfo | ||
* - CodeIgniter\Router\RouteCollection::getFiltersForRoute(), instead of getFilterForRoute() | ||
* | ||
* @var bool | ||
*/ | ||
public $multipleFilters = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Config; | ||
|
||
use CodeIgniter\Config\Publisher as BasePublisher; | ||
|
||
/** | ||
* Publisher Configuration | ||
* | ||
* Defines basic security restrictions for the Publisher class | ||
* to prevent abuse by injecting malicious files into a project. | ||
*/ | ||
class Publisher extends BasePublisher | ||
{ | ||
/** | ||
* A list of allowed destinations with a (pseudo-)regex | ||
* of allowed files for each destination. | ||
* Attempts to publish to directories not in this list will | ||
* result in a PublisherException. Files that do no fit the | ||
* pattern will cause copy/merge to fail. | ||
* | ||
* @var array<string,string> | ||
*/ | ||
public $restrictions = [ | ||
ROOTPATH => '*', | ||
FCPATH => '#\.(?css|js|map|htm?|xml|json|webmanifest|tff|eot|woff?|gif|jpe?g|tiff?|png|webp|bmp|ico|svg)$#i', | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.