155 Commits

Author SHA1 Message Date
f226c3cb38 Fix #12539: yii\filters\ContentNegotiator now generates 406 'Not Acceptable' instead of 415 'Unsupported Media Type' on content-type negotiation fail
Co-authored-by: PowerGamer1 <PowerGamer1@users.noreply.github.com>
2020-01-09 23:43:24 +03:00
a226b76776 Fixes #17341: Allow callable objects to be set to \yii\filters\AccessRule::$roleParams 2019-06-12 00:02:07 +03:00
58761b4411 Fixes #16820: yii\filters\Cors::prepareHeaders() now accepts Access-Control-Allow-Headers in preflight response 2019-04-16 17:27:26 +03:00
a3b6d227ba Fixes #16335: Fixed in yii\filters\AccessRule::matchIP() user IP validation with netmask in rule 2019-03-20 14:44:22 +03:00
bdb7c64910 Update to https protocol for php.net links (#17168) [skip ci]
* Updated php.net link for some MemCache properties [skip ci]

* Changed protocol to https for links to php.net in comments

* Changed protocol to https for links to php.net in code

* Changed www.php.net (http) to secure.php.net (https) in comments

* Changed www.php.net (http) to secure.php.net (https) in code

* Changed protocol to https for links to php.net in UPGRADE.md

* Changed protocol to https for links to pecl.php.net in comments

* Changed us.php.net to secure.php.net (https) in comments

* Changed protocol to https for links to php.net in docs

* Changed www.php.net (http) to secure.php.net (https) in docs

* Changed protocol to https for links to pecl.php.net in docs

* Changed ru/jp.php.net to secure.php.net (https) in docs

Don't sure about russian guide: is this links meant to be for guide on russian, or not?
2019-02-28 13:09:27 +03:00
Sam
197feeb255 Fixes #16969: Fix yii\filters\PageCache incorrectly storing empty data in some cases 2018-12-14 19:52:34 +03:00
Kot
4e6eb5c814 Fixes #16766: yii\filters\ContentNegotiator was not setting Vary header to inform cache recipients 2018-10-07 19:03:01 +03:00
77d7a5046e Small PHPDoc comment fixes in \yii\filters\Cors [skip ci] (#16460) 2018-06-30 02:17:27 +03:00
4e17feb5bb Fixes #16292: Fixed misconfigured CORS filter exception throwing. Now it throws InvalidConfigException in Debug mode 2018-05-18 00:05:50 +03:00
0c3b3f79d5 Minor [ci skip] 2018-05-01 11:00:32 +03:00
a1f52ef118 Adjusted code style, fixed typo 2018-05-01 01:16:03 +03:00
2b6d181878 Fix #16193 to not reflect origin header for wildcard origins 2018-05-01 00:01:25 +08:00
713a8b92f8 Fix action name in commentaries (list -> index) (#16124) [skip ci]
Signed-off-by: filipe1309 <filipe1309@outlook.com>
2018-04-19 00:01:00 +03:00
35c3ff2fbd Fixes #16010: Fixed yii\filters\ContentNegotiator behavior when GET parameters contain an array 2018-03-30 18:16:52 +03:00
1a74b3d4f8 [minor] SCA with Php Inspections (EA Ultimate) (#15871)
* Php Inspections (EA Ultimate): use type casting where applicable

* Php Inspections (EA Ultimate): use constants where applicable

* Php Inspections (EA Ultimate): CS

* Php Inspections (EA Ultimate): address some of one-time used variables

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): revert a constant usage

* Php Inspections (EA Ultimate): revert sequential assignments

* Php Inspections (EA Ultimate): build is green again

* Php Inspections (EA Ultimate): revert array_merge tweaks

* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak

* Update description [skip ci]

* Php Inspections (EA Ultimate): CS
2018-03-12 01:37:19 +03:00
adccc89c38 Restore removed line 2018-02-21 12:02:41 +01:00
da89225c8d Fix HttpAuthHeader 2018-02-20 13:52:50 +01:00
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
78d54bc541 Fixed yii\db\HttpBasicAuth not to switch identity, when user is already authenticated
Fixes #15658
2018-02-17 13:16:15 +02:00
eab30d38a1 getView() made public instead of protected 2018-02-13 12:12:42 +03:00
c382d3e8d4 Fixes #15120: Refactored dynamic caching introducing DynamicContentAwareInterface and DynamicContentAwareTrait 2018-02-13 00:19:01 +03:00
25f8b263e5 Fixes #14811: Fixed yii\filters\HttpCache to work with PHP 7.2 2018-02-11 12:08:01 +03:00
e6f5c46cdc Fixes #15633: Deprecate some things going away/changing in 2.1
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
3763542dc4 Fixes #15494: Fixed missing WWW-Authenticate header 2018-01-21 22:17:17 +03:00
eaca9c4202 Moved time() statement right before usages in \yii\filters\RateLimiter (#14713) 2018-01-18 11:33:29 +03:00
b8f4397426 Fixes #15432: Fixed wrong value being set in yii\filters\RateLimiter::checkRateLimit() resulting in wrong X-Rate-Limit-Reset header value 2017-12-30 15:16:26 +03:00
1958d8bff2 Merge branch 'accept_options_in_cors' of github.com:michaelarnauts/yii2 2017-12-27 13:51:03 -02:00
1b8da6d951 Add StringHelper::matchWildcard() (#15389)
`StringHelper::matchWildcard()` added
2017-12-20 16:16:25 +02:00
c8fbe40352 Fixes #9253: Allow variations to be a string for yii\filters\PageCache and yii\widgets\FragmentCache 2017-12-19 12:52:17 +03:00
a1fa635332 Fixes #15219: Added yii\filters\auth\HttpHeaderAuth 2017-12-14 15:37:22 +03:00
1b63f7c891 Fixes #15320: Fixed special role checks in yii\filters\AccessRule::matchRole() 2017-12-11 13:18:59 +03:00
2d672b6722 release version 2.0.13 2017-11-03 01:09:29 +03:00
fb23b0d0ea Code style fixes 2017-11-01 02:43:02 +03:00
abc0cb5c1e improved docs for AccessRule::$denyCallback
fixes #12626
close #14982
2017-10-19 12:42:03 +02:00
c9de616b4c Fixes #13403: Added 'permissions' additionally to 'roles' in yii\filters\AccessRule in order to be able to specify these separately 2017-10-08 23:50:59 +02:00
ea2c475ea7 Moved HTTP_AUTHORIZATION header check to \yii\web\Request, added docs
Closes #13564
2017-10-08 23:22:11 +03:00
0b2e79eac5 Fixed BasicHttpAuth to respect HTTP_AUTHORIZATION header
Closes #13564
2017-10-08 11:25:50 +03:00
a72b768773 Fix request usage at Cors 2017-08-25 17:41:46 +03:00
5a8c3d537b Enable phpdoc_summary rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.

* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
b99e955627 Fix CS (#14665)
* Run php-cs-fixer.

* Enable phpdoc_types rule.
2017-08-18 12:10:42 +02:00
Sam
0017d9c660 Fixes #13780: Added support for trusted proxies in yii\web\Request 2017-08-17 13:14:51 +03:00
6a6d90ce03 Add handleOptions to Cors filter so OPTIONS requests are handled for the preflight check. 2017-08-16 09:40:28 +02:00
459721d471 Fixes #14471: ContentNegotiator will always set one of the configured server response formats even if the client does not accept any of them 2017-07-30 00:49:33 +03:00
e2ba94abd6 Fixes #7823: Added yii\filters\AjaxFilter filter 2017-07-24 17:25:16 +03:00
d38908fc13 Fixed #14469: updated RFC links 2017-07-17 16:21:49 +03:00
062e1c7e67 Uppercased HTTP methods as required by RFC [skip ci] 2017-07-16 18:06:25 +03:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
ba0ab403b5 Added php-cs-fixer coding standards validation to Travis CI (#14100)
* php-cs-fixer: PSR2 rule.

* php-cs-fixer: PSR2 rule - fix views.

* Travis setup refactoring.

* Add php-cs-fixer to travis cs tests.

* Fix tests on hhvm-3.12

* improve travis config

* composer update

* revert composer update

* improve travis config

* Fix CS.

* Extract config to separate classes.

* Extract config to separate classes.

* Add file header.

* Force short array syntax.

* binary_operator_spaces fixer

* Fix broken tests

* cast_spaces fixer

* concat_space fixer

* dir_constant fixer

* ereg_to_preg fixer

* function_typehint_space fixer

* hash_to_slash_comment fixer

* is_null fixer

* linebreak_after_opening_tag fixer

* lowercase_cast fixer

* magic_constant_casing fixer

* modernize_types_casting fixer

* native_function_casing fixer

* new_with_braces fixer

* no_alias_functions fixer

* no_blank_lines_after_class_opening fixer

* no_blank_lines_after_phpdoc fixer

* no_empty_comment fixer

* no_empty_phpdoc fixer

* no_empty_statement fixer

* no_extra_consecutive_blank_lines fixer

* no_leading_import_slash fixer

* no_leading_namespace_whitespace fixer

* no_mixed_echo_print fixer

* no_multiline_whitespace_around_double_arrow fixer

* no_multiline_whitespace_before_semicolons fixer

* no_php4_constructor fixer

* no_short_bool_cast fixer

* no_singleline_whitespace_before_semicolons fixer

* no_spaces_around_offset fixer

* no_trailing_comma_in_list_call fixer

* no_trailing_comma_in_singleline_array fixer

* no_unneeded_control_parentheses fixer

* no_unused_imports fixer

* no_useless_return fixer

* no_whitespace_before_comma_in_array fixer

* no_whitespace_in_blank_line fixer

* not_operator_with_successor_space fixer

* object_operator_without_whitespace fixer

* ordered_imports fixer

* php_unit_construct fixer

* php_unit_dedicate_assert fixer

* php_unit_fqcn_annotation fixer

* phpdoc_indent fixer

* phpdoc_no_access fixer

* phpdoc_no_empty_return fixer

* phpdoc_no_package fixer

* phpdoc_no_useless_inheritdoc fixer

* Fix broken tests

* phpdoc_return_self_reference fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_to_comment fixer

* phpdoc_trim fixer

* phpdoc_var_without_name fixer

* psr4 fixer

* self_accessor fixer

* short_scalar_cast fixer

* single_blank_line_before_namespace fixer

* single_quote fixer

* standardize_not_equals fixer

* ternary_operator_spaces fixer

* trailing_comma_in_multiline_array fixer

* trim_array_spaces fixer

* protected_to_private fixer

* unary_operator_spaces fixer

* whitespace_after_comma_in_array fixer

* `parent::setRules()` -> `$this->setRules()`

* blank_line_after_opening_tag fixer

* Update finder config.

* Revert changes for YiiRequirementChecker.

* Fix array formatting.

* Add missing import.

* Fix CS for new code merged from master.

* Fix some indentation issues.
2017-06-12 12:25:45 +03:00