Mikk Tendermann
629133f1bf
Fix #18619 : Do not modify `yii\web\Cookie::$path` on `yii\web\Response::sendCookies()`
3 years ago
Rober Díaz
6b33ddf441
Fix #18199 : Fix content body response on 304 HTTP status code, according to RFC 7232
4 years ago
Brandon Kelly
279f59a3d4
Fix #18394 : Add support for setting `yii\web\Response::$stream` to a callable
4 years ago
Alexander Makarov
ccb14ff667
release version 2.0.39
4 years ago
Tobias Munk
88e79d3f8e
Fix #18290 : Fix response with non-seekable streams
4 years ago
My6UoT9
03da5bb689
Updates to ErrorHandler, add missing type hint \Throwable ( #18302 )
...
* Updated phpdoc so it has \Throwable
- `abstract protected function renderException($exception);` is extended in web/ErrorHandler to also have `\Error`.
- `public static function convertExceptionToError($exception)` is called from widgets/ActiveField.php with
```
/**
* PHP magic method that returns the string representation of this object.
* @return string the string representation of this object.
*/
public function __toString()
{
// __toString cannot throw exception
// use trigger_error to bypass this limitation
try {
return $this->render();
} catch (\Exception $e) {
ErrorHandler::convertExceptionToError($e);
return '';
} catch (\Throwable $e) {
ErrorHandler::convertExceptionToError($e);
return '';
}
}
```
* Add \Throwable to phpdoc in response.php
The ErrorHandler has been updated in phpdoc to have throwable, this complets that change.
* Update ErrorHandler.php
fixed missing `|`
4 years ago
scottix
975937e531
Fix #18006 : Allow SameSite cookie pre PHP 7.3
4 years ago
Brandon Kelly
13c14292c2
Fix #17948 : Ignore errors caused by `set_time_limit(0)`
5 years ago
Brandon Kelly
f8d417c42a
Fixed usage of non-existing ResponseEvent in yii\web\Response docs ( #17939 )
5 years ago
Somogyi Márton
6c1b2db9de
Fix #17434 : IE Ajax redirect fix for non 11.0 versions
5 years ago
Somogyi Márton
c75ef05539
Fix #17434 : Fix regular expression illegal character; Repeated fix for Internet Explorer 11 AJAX redirect bug in case of 301 and 302 response codes (`XMLHttpRequest: Network Error 0x800c0008`)
5 years ago
Brandon Kelly
37df938338
Fix #16531 : Fix error in `Response::sendContent()` when `set_time_limit()` is disabled
5 years ago
Somogyi Márton
10a069a3a4
Fix #17434 : Fixed Internet Explorer 11 AJAX redirect bug in case of 301 and 302 response codes (`XMLHttpRequest: Network Error 0x800c0008`)
5 years ago
Alexander Kartavenko
3601d512c2
Fixes #17070 : Strip invalid character from fallback file name
5 years ago
rhertogh
1ed6ec1e5c
Fixes #17353 : Added `sameSite` support for `yii\web\Cookie` and `yii\web\Session::cookieParams`
5 years ago
Mikk Tendermann
81f7d381e5
Fixes #17180 : Do not populate `yii\web\Response::$response` when response code is 204
6 years ago
Nikolay
fd3eb699d4
Fixes #17094 : Fixed response on 204 status. Now it is empty
6 years ago
Vladimir Reznichenko
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
7 years ago
Brandon Kelly
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()`
7 years ago
Dmitry Dorogin
28e7f31a37
Fixes #15046 : Throw an `yii\web\HeadersAlreadySentException` if headers were sent before web response
7 years ago
Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Sam
0017d9c660
Fixes #13780 : Added support for trusted proxies in `yii\web\Request`
7 years ago
Alexander Makarov
d38908fc13
Fixed #14469 : updated RFC links
7 years ago
Robert Korulczyk
fe8a0a6a2e
Enable `no_useless_else` rule in php-cs-fixer ( #14420 )
7 years ago
Brandon Kelly
6f03e8b692
Fixes #14298 : The default response formatter configs defined by `yii\web\Response::defaultFormatters()` now use the array syntax
7 years ago
Robert Korulczyk
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.
7 years ago
Carsten Brandt
be658f82bf
release version 2.0.12
7 years ago
micro-maureen
8eabff0698
#13975 : make documentation of current behaviour more clear [skip ci]
8 years ago
Carsten Brandt
5bbf372f85
cleanup some phpdoc
8 years ago
Sam Mousa
183ebc5985
Revert "Moved serialization of `Cookie` to `Cookie`. Added unit test for serialization / deserialization."
...
This reverts commit a2acd88efe
.
8 years ago
Sam Mousa
a2acd88efe
Moved serialization of `Cookie` to `Cookie`. Added unit test for serialization / deserialization.
8 years ago
Nikolay Oleynikov
ea75068a92
Fixes #13813 : Fixed PHP 7 compatibiltiy by adding support for passing instances of `Error` to the `yii\web\Response::setStatusCodeByException()`
8 years ago
yyxx9988
0770863209
Fixes #13820 : Add new HTTP status code 451
8 years ago
Alexander Makarov
bc59d5da85
Fixes #13707 : Fixed `\yii\web\ErrorHandler` and `\yii\web\ErrorAction` not setting correct response code to response object before rendering error view
8 years ago
Kyle McCarthy
0b3c066bd2
Fixes #13695 : `\yii\web\Response::setStatusCode()` method now returns the Response object itself
8 years ago
Carsten Brandt
c19b2f7dc8
release version 2.0.11
8 years ago
Alexey Rogachev
37f19a0256
Fixes #13300 , #13307 , #13310 , #13312
...
- Bug #13300 : Allow pjax with "data-pjax" with no value in `yii.js`.
- Bug #13307 : Preventing of race conditions in script filter in `yii.js` works incorrectly.
- Bug #13310 : Handle relative and absolute URLs coincidence in CSS filter in `yii.js`.
- Bug #13312 : `skipOuterContainers` option was incorrectly passed to pjax in `handleAction` in `yii.js`.
- Partially fixes #13299 .
Adds tests for #8014 , #11921 , #10974 , #11494 , #10358 , #10097 .
8 years ago
zalatov
deea3cf798
Fixes #12854 : Added `RangeNotSatisfiableHttpException` to cover HTTP error 416 file request exceptions
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Boudewijn Vahrmeijer
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
8 years ago
SilverFire - Dmitry Naumenko
e23a419732
PHPDocs updated
8 years ago
Alexander Makarov
4b43183df7
Fixes #10563 : Fixed forming `Content-Disposition` header for file downloads ( #12721 )
8 years ago
Carsten Brandt
4b40417972
improved docs about sendFile() in Request
8 years ago
Roman Grinyov
d8e0694aec
Added missing square bracket
8 years ago
cuiliang
c0df003ac0
merge from master
8 years ago
dasmfm
91734ae83b
Fixes #11432 : Added HTTP status 421 "Misdirected Request" to list of statuses in `yii\web\Response`
...
Source: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
9 years ago
Klimov Paul
57ab949be5
`Response::redirect()` uses 200 status code if 'X-Ie-Redirect-Compatibility' header sent
9 years ago
SilverFire - Dmitry Naumenko
019587e544
yii\web\Response - fixed comparation bug introduced in #9670
9 years ago
SilverFire - Dmitry Naumenko
dc93ec3812
Bug #9670 : Fixed PJAX redirect in IE
9 years ago