SilverFire - Dmitry Naumenko
7c73b0b79d
Enhanced tests, updated CHNAGELOG
7 years ago
SilverFire - Dmitry Naumenko
e4601e5a91
Fixed changelog
7 years ago
bscheshirwork
2b9b0c7166
Fixes #14151 : Added `AttributesBehavior` that assigns values specified to one or multiple attributes of an AR object when certain events happen
7 years ago
Carsten Brandt
cda3089623
Fixed batchInsert casting of double values according to locale ( #14448 )
...
fixes #6526
7 years ago
SilverFire - Dmitry Naumenko
368540f8d0
Added tests
7 years ago
shirase
b6a5697c00
User can login by cookie only once when `autoRenewCookie` is set to false
7 years ago
Alexander Makarov
648971a82b
Fixes #14542 : Ensured only ASCII characters are in CSRF cookie value since binary data causes issues with ModSecurity and some browsers
7 years ago
bscheshirwork
0c0cc1074d
fix current time in formatter ( #14203 )
...
* fix current time in formatter
* expand testAsDatetime
* Update FormatterDateTest.php
* Update CHANGELOG.md
7 years ago
Alexander Makarov
89d8c0f20c
Fixed changelog [skip ci]
7 years ago
Alexander Makarov
ff2bde4939
Added CVE number to escaping issue in changelog [skip ci]
7 years ago
Dmitry Dorogin
f7fb7cdd87
Fixes #14022 : Added posibility to use aliases in yii\web\UrlManager::setBaseUrl() ( #14540 )
7 years ago
Dmitry Dorogin
e18e98ffb3
Fixes #14363 : Added `yii\widgets\LinkPager::$linkContainerOptions` and possibility to override tag in `yii\widgets\LinkPager::$options`
7 years ago
PowerGamer1
459721d471
Fixes #14471 : `ContentNegotiator` will always set one of the configured server response formats even if the client does not accept any of them
7 years ago
Alexey Rogachev
8f2d9baf98
Fixes #14186 , Fixes #14510 : yiiActiveForm regressions
...
- #14186 : Forced validation in `yiiActiveForm` do not trigger `afterValidate` event
- #14510 : The state of a form is always "not validated" when using forced validation in `yiiActiveForm`
7 years ago
Michaël Arnauts
e472b4e29c
Fixes #14525 : Fixed 2.0.12 regression of loading of global fixtures trough `yii fixture/load`
7 years ago
Klimov Paul
2466d397ae
Fixed `yii\validators\ExistValidator` and `yii\validators\UniqueValidator` throw exception in case they are set for `yii\db\ActiveRecord` with `$targetClass` pointing to NOSQL ActiveRecord
7 years ago
Dmitry Dorogin
a731fd4142
Fixes #14318 : Trigger `yiiActiveForm.events.afterValidateAttribute` after updating attribute
7 years ago
Dmitry Dorogin
1ee29c630d
Fixes #14493 : Fixed getting permissions in `yii\rbac\Dbmanger::getPermissionsByUser` by user with id equals 0
7 years ago
Dmitry Dorogin
e2ba94abd6
Fixes #7823 : Added `yii\filters\AjaxFilter` filter
7 years ago
Klimov Paul
578b2caf42
Added `yii\web\MultipartFormDataParser::$force` option allowing to enforce parsing even on 'POST' request
7 years ago
Dmitry Dorogin
8ae2223c6a
Fixes #14370 : Fixed creating built-in validator in model with same function name
7 years ago
Alexander Makarov
acf29e0001
Fixes #14492 : Fixed error handler not escaping error info debug mode
7 years ago
Dmitry Dorogin
21d2d72534
Fixes #14487 : Changed i18n message error to warning
7 years ago
Dmitry Dorogin
6d2e0aff82
Fixes #14406 : Fixed caching rules in `yii\web\UrlManager` with different `ruleConfig` configuration
7 years ago
Carsten Brandt
393fc2744a
Added yii\base\Object for backwards compatibility
...
fixes #7936
close #14478
7 years ago
Alex
59002a9e1e
Fixes #6644 : Added `yii\helpers\ArrayHelper::setValue()`
7 years ago
Carsten Brandt
2f9f15bf92
Fixes #14188 : Add constants and function for sysexits(3) to `ConsoleHelper`
7 years ago
Boudewijn Vahrmeijer
03d53b785d
Fixes #14449 : Fix PHP 7.2 compatibility bugs and add explicit closure support in `yii\base\Application`
7 years ago
SilverFire - Dmitry Naumenko
b0162d3a48
Revert "Fixes #14294 : Added `InputWidget::renderInput()` to move behavior described in `InputWidget` class docs to the class itself"
...
This reverts commit a5b393a3c1
.
See https://github.com/yiisoft/yii2/pull/14441#issuecomment-315127527 for reasons
7 years ago
Carsten Brandt
a5b393a3c1
Fixes #14294 : Added `InputWidget::renderInput()` to move behavior described in `InputWidget` class docs to the class itself
7 years ago
Carsten Brandt
6fa48eab38
Update CHANGELOG for #14206
7 years ago
Dmitry Dorogin
6e223e6db2
Fixes #14423 : Fixed `ArrayHelper::merge` behavior with null values for integer-keyed elements
7 years ago
Carsten Brandt
445019779f
Fixes #14206 : `MySqlMutex`, `PgsqlMutex` and `OracleMutex` now use `useMaster()` to ensure lock is aquired on the same DB server
7 years ago
qihuajun
f5e8a89319
Fix slave usage disabled after Connection::close, set _slave to false instead of nulll
...
fixes #14165
close #14168
7 years ago
Carsten Brandt
c9347b0a57
Fixed ambiguous column error on indexBy with JOIN
...
fixes #13859
close #14431
7 years ago
Carsten Brandt
0070b97837
allow migrate/mark to mark the history base ( #14428 )
...
fixes #7890
7 years ago
yyxx9988
46bf3c410a
Add `yii\web\Request::getOrigin()` method that returns HTTP_ORIGIN of current CORS request
...
>The Origin request header indicates where a fetch originates from. It doesn't include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn't disclose the whole path.
From https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
Working code samples
```php
<?php
// We'll be granting access to only the arunranga.com domain
// which we think is safe to access this resource as application/xml
if($_SERVER['HTTP_ORIGIN'] == "http://arunranga.com ") {
header('Access-Control-Allow-Origin: http://arunranga.com ');
header('Content-type: application/xml');
readfile('arunerDotNetResource.xml');
} else {
header('Content-Type: text/html');
echo "<html>";
echo "<head>";
echo " <title>Another Resource</title>";
echo "</head>";
echo "<body>",
"<p>This resource behaves two-fold:";
echo "<ul>",
"<li>If accessed from <code>http://arunranga.com </code> it returns an XML document</li>";
echo "<li>If accessed from any other origin including from simply typing in the URL into the browser's address bar,";
echo "you get this HTML document</li>",
"</ul>",
"</body>",
"</html>";
}
?>
```
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Server-Side_Access_Control for more info.
close #13835
7 years ago
Carsten Brandt
0559a95db9
Fixed ambiguous column error in `BaseActiveRecord::refresh()`
...
when the query adds a JOIN by default
fixes #13757
7 years ago
Robert Korulczyk
d2781cd232
Added configuration for headers in PHP files generated by `message/extract` command ( #14417 )
7 years ago
Carsten Brandt
583a1da16c
CHANGELOG for #14105
7 years ago
Carsten Brandt
f67d8d5a79
Fixed broken error page when calling an undefined method
...
fixes #14269
7 years ago
Konstantin Tsukur
cb09e1e463
calling getAttributeNames() only once
...
close #14389
7 years ago
Andrew Nester
d26493a287
Fixes #13378 : Added skipOnEmpty option to SluggableBehaviour
7 years ago
Elvira Sheina
aca7390a47
Added closure support in `yii\i18n\Formatter` #4495 ( #14326 )
7 years ago
Daniel Gómez Pan
b0ad73e361
Fixes #11415 : Added `yii\console\widgets\Table` to draw tables in console apps
7 years ago
Pavel Chaplygin
e38310546e
Fixes #14334 : Fixed `\yii\db\QueryBuilder::buildNotCondition` loses params when operand is `\yii\db\Expression`
7 years ago
Alexander Makarov
d4c15c36d0
Fixes #14304 : Fixed `yii\validators\UniqueValidator` and `yii\validators\ExistValidator` to skip prefixes in case expressions are used
7 years ago
DaveFerger
606b6d44f4
Fixes #14321 : `yii\widgets\MaskedInput` is now registering its JavaScript `clientOptions` initialization code in head section
7 years ago
Alexander Makarov
d1d60e2d19
Fixes #14341 : Fixed regression in error handling introduced by fixing #14264
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