840 Commits

Author SHA1 Message Date
35ac718110 Fixes #16006: Handle case when X-Forwarded-Host header have multiple hosts separated with a comma 2018-03-31 16:17:16 +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
5e16c67673 Merge pull request #15797 from kalessil/master
[minor] Static code analysis
2018-03-10 15:42:48 +02:00
bf6c9cf443 Fixes #15783: Regenerate CSRF token only when logging in directly 2018-03-05 02:00:07 +03:00
f10cb6aeee SCA with Php Inspections (EA Ultimate) 2018-02-27 19:13:22 +01:00
f9b03dfd42 SCA with Php Inspections (EA Ultimate) 2018-02-27 19:06:27 +01:00
7473c422ee Fixes #15318: Fixed "session_name(): Cannot change session name when session is active" errors 2018-02-24 01:03:27 +03:00
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
d934d9f6f6 Improved phpdoc for ErrorHandler::$traceLine [skip ci] 2018-02-17 21:54:21 +03:00
e493843b1c improve @deprecated annotations 2018-02-16 11:19:00 +01:00
ef8f6172bb Added a note about URLManager cache duration
https://github.com/yiisoft/yii2/pull/13426#issuecomment-366078957
issue #13426
2018-02-16 04:34:38 +01:00
2e8b6e5c80 Added ruleConfig to UrlManager::setBuiltRulesCache() to fix tests 2018-02-16 00:12:14 +02:00
9323817a53 Refactored code, added tests 2018-02-15 23:14:52 +02:00
a2f9ff8aac Merge branch 'master' into yuriystovbur-13425-fix-url-rules-cache 2018-02-15 21:52:25 +02:00
b566dd522c Fixes #15272: Removed type attribute from script tag 2018-02-14 13:39:48 +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
73fe41ee9f Removed redundant condition 2018-02-10 12:40:50 +03:00
47e43a1b63 Try reverting init() 2018-02-10 11:50:14 +03:00
d86db78276 Extra checks 2018-02-10 01:39:17 +03:00
7924a22490 Remove extra condition 2018-02-10 01:07:20 +03:00
07e623e415 Don't use open() method because it registers handlers 2018-02-10 00:42:17 +03:00
a23a325ca7 Fixes #15627: Corrected session freezing/unfreezing not to attempt opening or closing connection if it isn't necessary 2018-02-10 00:06:10 +03:00
64d57043b1 Fixes #11401: Fixed yii\web\DbSession concurrency issues when writing and regenerating IDs 2018-02-09 03:13:50 +03:00
2e55570e1f Fixes #15621: Fixed yii\web\User::getIdentity() returning null if an exception had been thrown when it was called previously 2018-02-09 01:34:33 +03:00
24f4e3126a Bug #15523: yii\web\Session settings could now be configured after session is started (StalkAlex, rob006, daniel1302, samdark)
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Robert Korulczyk <robert@korulczyk.pl>
Co-authored-by: daniel.1302 <daniel.1302@gmail.com>
2018-02-08 20:11:45 +03:00
7cafa65ad2 Fixes #15216: Added yii\web\ErrorHandler::$traceLine to allow opening file at line clicked in IDE 2018-02-07 22:36:29 +03:00
7bafb7bf09 Fixes #14488: Added support for X-Forwarded-Host to yii\web\Request, fixed getServerPort() usage 2018-02-07 00:01:50 +03:00
d16586334d Fixes #7640: Implemented custom data types support. Added JSON support for MySQL and PostgreSQL, array support for PostgreSQL 2018-02-05 04:59:14 +07:00
61b47014a2 Fixes #14643: Added yii\web\ErrorAction::$layout property to conveniently set layout from error action config
Co-authored-by: Stas So <etc@swods.ru>
Co-authored-by: Carsten Brandt <mail@cebe.cc>
2018-02-03 21:18:47 +03:00
e07219c812 Fixes #13996: Added yii\web\View::registerJsVar() method that allows registering JavaScript variables 2018-01-26 15:31:27 +03:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
acce1db53b Fixes #14135: Fixed yii\web\Request::getBodyParam() crashes on object type body params 2018-01-18 00:33:41 +03:00
6c0540aa2d Fixes #15496: CSRF token is now regenerated on changing identity 2018-01-14 02:13:24 +03:00
3c017b6b61 Fixes #15462: Fixed accessChecker configuration error 2018-01-13 20:49:33 +03:00
28e7f31a37 Fixes #15046: Throw an yii\web\HeadersAlreadySentException if headers were sent before web response 2017-12-20 00:31:59 +03:00
3b1ff661d8 Fixes #7996: Short syntax for verb in GroupUrlRule 2017-12-18 00:01:24 +03:00
0b413b0e08 Fixed PHP 5.4 compatibility 2017-12-14 14:12:50 +03:00
Sam
4d388f6cd2 Fixes #15317: Regenerate CSRF token if an empty value is given 2017-12-14 12:14:51 +03:00
185209957e Fixes #15270: Resolved potential race conditions when writing generated php-files 2017-12-02 18:24:56 +03:00
48bf8ce048 Fixes #14662: Added support for custom Content-Type specification to yii\web\JsonResponseFormatter 2017-11-15 00:39:32 +03:00
2246786483 Fixed jQuery onLoad event handling
Fixes #15086
2017-11-05 11:22:22 +02:00
87369f4e58 Conflict resolved 2017-11-03 19:01:22 +00:00
2d672b6722 release version 2.0.13 2017-11-03 01:09:29 +03:00
2faf771118 Fixes #13436: Fixed migration for MSSQL DbSession 2017-10-31 12:50:37 +03:00
93bbf5b39d Fixes #15015: Added StringHelper::floatToString() to savely cast float values independent of the locale, also fixes some places in the framework that use it now 2017-10-27 11:41:45 +03:00
64d8af61a6 Fixes for PHP 7.2 compatibility (#14959) 2017-10-19 01:54:40 +03:00
8beb36c94f Use PHP core classes right from root namespace without importing for the sake of clarity 2017-10-17 18:27:23 +03:00
d11bed5340 Minor, added strict comparsion 2017-10-08 23:35:36 +03:00
ea2c475ea7 Moved HTTP_AUTHORIZATION header check to \yii\web\Request, added docs
Closes #13564
2017-10-08 23:22:11 +03:00