9312 Commits

Author SHA1 Message Date
64a13931cf release version 2.0.49.4 2024-06-10 23:26:16 +03:00
62d081f18c CVE-2024-32877, Fix Reflected XSS in Debug mode, CVE-2024-4990, Fix Unsafe Reflection in base Component class 2024-06-04 19:23:46 +03:00
b4045bac55 release version 2.0.49.3 2023-10-31 16:39:08 +01:00
62abb671b7 Changelog 2023-10-31 12:01:53 +01:00
1933b00afb Revert MaskedInput changes 2023-10-31 11:49:20 +01:00
4f1735995a release version 2.0.49.2 2023-10-12 17:46:26 +02:00
33254d5dad Update CHANGELOG.md
2.0.49.2 changelog
2023-10-12 17:43:55 +02:00
9f51fe3b4b Revert changes in mimeTypes.php from 4a1f2c6b9bc90427e91da73f5e8c8fa33d3c53c1
restores https://github.com/yiisoft/yii2/pull/19936
2023-10-06 10:02:32 +02:00
290e03cddc prepare for next release 2023-10-05 18:12:47 +02:00
4a1f2c6b9b release version 2.0.49.1 2023-10-05 18:12:27 +02:00
48d754cac2 Update CHANGELOG.md 2023-10-05 18:00:59 +02:00
7f3397a5cc Update framework/log/FileTarget.php
Co-authored-by: Bizley <pawel.bizley@gmail.com>
2023-10-01 23:31:10 +02:00
764926a877 Do not duplicate log messages in memory 2023-09-29 09:49:05 +02:00
17386c7501 fix: keep doublequote 2023-09-26 16:24:47 +08:00
ced6d04dc1 fix: #19978 - Mistake in Korean translation 2023-09-26 16:16:35 +08:00
757676128b Merge pull request #19963 from terabytesoftw/update-bower-inputmask-punycode
Update `bower-asset/inputmask`, `bower-asset/punycode`.
2023-09-22 12:05:32 +02:00
a028baf1b9 Fix order. 2023-09-22 06:14:23 -03:00
eb2add33a4 added CHANGELOG line 2023-09-21 15:09:23 +00:00
a32617eb13 Merge branch 'master' into feature/pcntl-req-check 2023-09-21 17:04:07 +02:00
20a4b7eff9 Update bower-asset/inputmask, bower-asset/punycode. 2023-09-21 11:22:53 -03:00
18421ab976 Fixed tests. 2023-09-20 06:47:45 -03:00
fd5c1bbf27 Update CHANGELOG.md 2023-09-20 12:27:33 +03:00
5a48739c16 Merge branch 'master' into patch-2 2023-09-14 12:05:27 +02:00
30b491dfdf removed MIME file tests (#19951)
* removed MIME file tests
see also 0f7248c7a2 (commitcomment-127223170)

* added CHANGELOG line
2023-09-13 13:23:21 +02:00
b05ad49a19 trim(): Passing null to parameter #1 ($string) of type string is deprecated 2023-09-11 19:38:41 +03:00
e8c4a7e56e added PHP version check, fixed #19925 (#19936)
* added PHP version check, fixed #19925

* added CHANGELOG line

* fixed typo

* fixed typo

---------

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2023-09-04 10:09:49 +02:00
671fbefe84 File Log writer without newline. (#19941)
* File Log writer without newline.

* Fix minor correction.

* Fix tests.

* Add more test.

* Add line to CHANGELOG.md.
2023-08-30 14:14:12 +02:00
a2ee22044c prepare for next release 2023-08-29 15:36:45 +02:00
0f7248c7a2 release version 2.0.49 2023-08-29 15:36:17 +02:00
8532622d7b Fix #19911: Resolved inconsistency in ActiveRecord::getAttributeLabel() with regard of overriding in primary model labels for attributes of related model in favor of allowing such overriding for all levels of relation nesting 2023-08-26 07:06:41 +04:00
d5b3b6ca83 Add note to UPGRADE guide for change in Validator behavior (#19938)
The `unique` and `exists` validators behave slightly different since
2.0.46 (issue #19407) when used on multiple/combined attributes.

See: https://github.com/yiisoft/yii2/issues/19407#issuecomment-1689625762
2023-08-26 05:08:16 +04:00
4c0a00f2b9 Fix #19924: Fix yii\i18n\Formatter to not throw error Unknown named parameter under PHP 8 2023-08-21 15:55:14 +04:00
e916e9d564 Fix #19914: Fixed ArrayHelper::keyExists() and ::remove() functions when the key is a float and the value is null 2023-08-18 15:31:09 +04:00
73f57fdcb0 Fix #19872: Fixed the definition of dirty attributes in AR properties for a non-associative array in case of changing the order of elements 2023-08-18 15:19:24 +04:00
e40fb70fa8 Remove unnecessary type (#19932)
Because Web and Console application extend Base application there is no need to specify it.

Actually, PHPStan narrows this to _just_ BaseApplication because it is the only consistent type of the three so you lose Web and Console Application type hints.

See, https://phpstan.org/r/d21fb99f-c436-480b-99c2-32df35ec07fa
2023-08-18 15:15:39 +04:00
73902f0730 Added support for string and DateTimeInterface as Cookie::$expire (#19920)
* Added support for string as Cookie::$expire

* Updated changelog for #19920 (Broadened the accepted type of `Cookie::$expire` from `int` to `int|string|null`)

* Fixed `\yiiunit\framework\web\ResponseTest::parseHeaderCookies()` to overwrite existing cookie.

* Added support for `\DateTimeInterface` in `\yii\web\Cookie::$expire`

* Fixed `\yiiunit\framework\web\ResponseTest::cookiesTestProvider()` for PHP 5.4 and commited missing code for \DateTimeInterface processing in `\yii\web\Response::sendCookies()`
2023-08-15 18:38:10 +02:00
84c15dc5d1 Fix associative array cell content in Table widget (#19908)
* Fixed rendering of assosative arrays in `\yii\console\widgets\Table`

* Updated readme for #19908 (fix associative array cell content rendering in Table widget)

---------

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2023-08-09 14:05:46 +02:00
504a66dae5 Update documentation for setCookieParams (#19921)
The link for more information about "sameSite" lead to a 404 Not Found.
2023-07-30 11:51:25 +02:00
8a213315ac End fenced code block (#19919) 2023-07-28 13:13:01 +02:00
c8c0ea97c4 Fix #19899: Fixed GridView in some cases calling Model::generateAttributeLabel() to generate label values that are never used 2023-07-24 11:52:38 +03:00
79c83ba7db Fix #9899: Fix caching a MSSQL query with BLOB data type 2023-07-24 10:03:18 +03:00
7d2e2b9e70 Fix #16208: Fix yii\log\FileTarget to not export empty messages 2023-07-24 10:01:24 +03:00
1a0e91e912 Fix #19906: Fixed multiline strings in the \yii\console\widgets\Table widget 2023-07-24 09:56:04 +03:00
4352b8744b Fix #19884: Added support Enums in Query Builder 2023-07-10 18:07:10 +03:00
d135996c64 Fix #19857: Fix AttributeTypecastBehavior::resetOldAttributes() causes "class has no attribute named" InvalidArgumentException 2023-07-10 17:30:32 +03:00
b073daa8f0 Fix typo in description codesnippet (#19873) 2023-06-30 15:58:04 +02:00
85171844cf Fix #19868: Added whitespace sanitation for tests, due to updates in ICU 72 2023-06-21 18:28:12 +03:00
6c511d99fb Fix #19759: Update docs for Command::createTable(), Migration::createTable() and QueryBuilder::createTable() 2023-06-16 07:02:22 +03:00
3cebbdad2e Fix #19853: Added support for default value for \yii\helpers\Console::select() 2023-06-09 19:36:21 +03:00
80a18ad6ba Fix #18859: Fix yii\web\Controller::bindInjectedParams() to not throw error when argument of ReflectionUnionType type is passed 2023-05-31 21:30:45 +03:00