Commit Graph

8965 Commits

Author SHA1 Message Date
kidol
ff55874457 Fixes #11132: Fixed yii\widgets\FragmentCache not handling empty content correctly in all cases 2016-04-12 02:03:27 +03:00
Alexander Makarov
7976aaeb59 Merge pull request #11285 from yiisoft/security-enhancements
Security enhancements
2016-04-12 02:02:18 +03:00
Alexander Makarov
6b00d3519c Added changelog 2016-04-12 02:01:41 +03:00
Alexandr
0d81e351f0 Changed new instance creation style 2016-04-11 19:39:50 +03:00
SilverFire - Dmitry Naumenko
83fc2446cf Fixed CHANGELOG lines duplication 2016-04-09 20:48:33 +03:00
mdmunir
d437c4bd37 Add session migration 2016-04-09 20:45:59 +03:00
Angel Guevara
b49488b1f7 Enh new property skipUpdateOnClean for AttributeBehavior (#11302)
Fixes #11002: `AttributeBehavior::$skipUpdateOnClean` which determines whether to skip a behavior when the behavior owner has not been modified
2016-04-09 15:38:41 +03:00
Ivaylo Ushev
5921865459 Fixed: #11270 - Error when link record in one to many relation. (#11301)
Fixed: #11270 - Error when link record in one to many relation.
2016-04-08 10:36:38 +03:00
Arzamastsev Mikhail
59ed5e18d6 ErrorHandler HttpException message translation (#11303) 2016-04-07 19:26:25 +03:00
Mikk Tendermann
2f9395bbd6 fix #11299 2016-04-07 10:52:43 +03:00
SilverFire - Dmitry Naumenko
e5bcbf4e1d Closes #11228: yii.activeForm.js - AJAX validation will not be triggered if client side validation failed 2016-04-06 23:53:52 +03:00
SilverFire - Dmitry Naumenko
36689a5239 fixed changelog markdown 2016-04-06 23:15:54 +03:00
Aleksei Vesnin
6745bdb65e Fixed yii\widgets\ActiveField to handle inputs AJAX validation with changed ID properly.
Tests for `yii\widgets\ActiveField` with custom input ID.
2016-04-06 23:08:23 +03:00
Klimov Paul
de3c7d9d27 Fix MigrateController 2016-04-06 16:28:13 +03:00
Klimov Paul
6e96d881fd Merge branch 'master' of github.com:yiisoft/yii2 into migrate-fields-refactoring 2016-04-06 16:03:05 +03:00
Angel Guevara
b923adf75c Enh: Support for useTablePrefix parameter in migrate command
Fixes #11166: migrate command new option `useTablePrefix`
2016-04-06 13:37:37 +03:00
Klimov Paul
a90ffecdb3 MigrateController refactored avoiding internal state changing 2016-04-06 13:37:03 +03:00
Alexander Makarov
48a2df5d52 Fixes #11283: ActiveRecord::unlink() is not setting FK to null before deleting itself anymore 2016-04-06 12:41:53 +03:00
Alexander Makarov
81b18e1538 Fixed variable name 2016-04-06 10:59:17 +03:00
Alexander Makarov
371440d59a More Security component enhancements
- Removed PHP version checks since both are met by default because Yii requires 5.4.0+.
- Limit PHP fread buffer in order to prevent entropy wasting.
- Fixed incorrect bytes to read calculation.
- Added more notes explaining decisions.
2016-04-06 03:35:52 +03:00
Tom Worster
c455a3c54b Security component enhancements
- Added tests for random key generation speed.
- Better generateRandomKey() performance for small reads because of using fopen + buffered read and local caching of source detection.
- Use /dev/random on FreeBSD.
2016-04-06 01:49:07 +03:00
Alexander Makarov
f312163258 Fixes #11220: NumberValidator now handles objects properly 2016-04-06 00:53:10 +03:00
Paul Klimov
b72524d490 Fixes #11280 migrate autogenerate breaks MongoDB migration
Fixes #11280: Descendants of `yii\console\controllers\BaseMigrateController`, like the one for MongoDB, unable to create new migration
2016-04-05 23:05:40 +03:00
Aris Karageorgos
6bffe761b1 Fixed Wording 2016-04-05 16:54:22 +07:00
Carsten Brandt
e05f55bd13 Update PgsqlMutex.php
fixed `@since` annotation.
2016-04-05 04:53:52 +02:00
Angel Guevara
49aec24ae1 Enh: Migrate command now supports foreign keys
Fixes #11207: migrate command can create foreign keys
2016-04-05 01:02:52 +03:00
Yaroslav Lukyanov
db1a96d876 Added tests for #8920, used 16bit integers to avoid out of range error 2016-04-05 00:57:52 +03:00
John Was
84f37705bf Fixes #8920: Added yii\mutex\PgsqlMutex which implements mutex "lock" mechanism via PgSQL locks 2016-04-05 00:56:38 +03:00
Misbahul D Munir
0e17d652dc Enhanced RBAC Rule assignment
* #11254 Enhanced RBAC Rule assignment

* Enhanced RBAC Rule assignment
2016-04-05 00:52:04 +03:00
Dmitry Naumenko
bfa7c7b13b Merge pull request #11262 from hiqsol/phar-compatibility
Enable use of yii2 inside of PHAR packaged console applications
2016-04-04 13:33:12 +03:00
Andrii Vasyliev
e8d30f0c51 enable use of yii2 inside of phar packaged console applications 2016-04-04 10:32:50 +00:00
Joel Waldock
20de74d343 Fix spelling in Controller.php 2016-04-04 06:21:33 +02:00
Robbert Jan van de Velde
d438c03dbc Bug #11223: Fixed returning an empty array when DbManager::getRolesByUser() was called on a user with user id 0
* Bug #11223: Fixed returning an empty array when DbManager::getRolesByUser() was called on a user with user id 0 (VirtualRJ)

* Added unit tests for #11223
2016-04-01 22:28:23 +03:00
Daniel Gomez Pan
5c38b93691 Fix changelog [skip ci] 2016-03-30 16:53:41 +02:00
Dmitrijs Goroščuks
cd47752e77 Fix LV translation in compare validator 2016-03-30 12:33:55 +03:00
Angel Guevara
0bd7bb961f [doc] link to unexistant class
`\yii\behaviors\Expression` to `\yii\db\Expression`
2016-03-29 20:29:26 -06:00
Alexander Makarov
cfbe50e96d Fixes #11026: Fixed StringHelper::truncateWords() to count words properly for non-English text 2016-03-30 00:26:56 +03:00
githubjeka
59fea15ee2 refactoring code 2016-03-29 18:33:00 +03:00
githubjeka
8e1ec62191 update BooleanValidator 2016-03-29 16:38:17 +03:00
Carsten Brandt
a46015124c improved docs for Html::a() and absolute URLs
fixes #11216
2016-03-28 16:33:30 +02:00
Carsten Brandt
79a4241fff fixed rest controller PHPdoc
fixes #11215
2016-03-28 16:00:16 +02:00
Nikola Kovacs
ff37be0fb8 add doc summary for getUniqueID
This way it won't be empty in the table of methods.
2016-03-28 15:06:13 +02:00
Evgeniy Tkachenko
4e59f92829 phpDoc updated 2016-03-28 10:24:53 +03:00
Carsten Brandt
608066b05f fixed ActiveForm tests for output buffering
related to  #8779, and 7dc984d359
2016-03-28 04:55:15 +02:00
Carsten Brandt
be3453fe1c improved HttpCache documentation 2016-03-28 04:15:11 +02:00
Daniel Gomez Pan
7dc984d359 Fixed #8779: Automatically set enctype form option when using file input field 2016-03-27 23:47:19 +03:00
Angel Guevara
3cbd64547a Additional phpdoc for #11187 2016-03-27 23:38:23 +03:00
particleflux
1dfab19b77 Fixes #11137: Added weak ETag support to yii\filters\HttpCache. It could be turned on via setting $weakEtag to true 2016-03-25 23:39:29 +03:00
Alexey
5e1e42839f Fixes #11188: Fixed wrong index usage in CaptchaAction when calling imagefilledrectangle 2016-03-25 23:28:23 +03:00
Damian Zajkowski
3fb85fb84e Fixing VarDumper for throwing PHP Fatal when dumping __PHP_Incomplete_Class. #11196 issue. 2016-03-25 15:54:15 +01:00