Anton
7ebaaf0216
Fix #18789 : Added JSONP support in `yii\web\JsonParser::parse()`
3 years ago
Anton
86d7e95077
Minor enhancements for JsExpression ( #18793 )
...
- Fix class phpDoc.
- Convert expression to string in `__toString()`.
3 years ago
Sohel Ahmed Mesaniya
fd7373f1c6
Make docs gender agnostics ( #18781 )
3 years ago
Sergei Predvoditelev
8cc9aeb2f0
Fix #18749 : Fix `yii\web\ErrorHandler::encodeHtml()` to support strings with invalid UTF symbols
3 years ago
olegbaturin
e83a86fd30
Fix #18648 : Fix `yii\web\Request` to properly handle HTTP Basic Auth headers
3 years ago
rhertogh
4d5fea7f6c
Fix #18695 : Added `yii\web\Cookie::SAME_SITE_NONE` constant
3 years ago
Bizley
7966fe47e6
Scrutinizer fixes ( #18685 )
...
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/filters/AccessRule.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/helpers/BaseFileHelper.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Application.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Module.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/MultipartFormDataParser.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/Session.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Controller.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Added vardocs, and small refactor
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/conditions/InConditionBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/Connection.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/mssql/QueryBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/log/Logger.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/BaseMigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Adding space between type
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/CacheController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/FixtureController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
3 years ago
rhertogh
0cd68a330d
Fix #18669 : Changed visibility of `yii\web\User::checkRedirectAcceptable()` to `public`
3 years ago
Alexander Makarov
88a7a00458
release version 2.0.42
3 years ago
N. D
08a133e728
Update docs for #9718 ( #18623 )
...
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
3 years ago
Bizley
209cf9b2de
Improve docs
3 years ago
Mikk Tendermann
629133f1bf
Fix #18619 : Do not modify `yii\web\Cookie::$path` on `yii\web\Response::sendCookies()`
3 years ago
Bizley
a6dba47963
Fix #18590 : Fix `yii\web\UrlManager` to instantiate cache only when it's actually needed
4 years ago
Pigo
14a581562a
Fix #18566 : Throw the original exception when `yii\web\Controller::bindInjectedParams()` catches HttpException
4 years ago
Alexander Krug
74d1842dee
Use the correct db if strict mode is used in DbSession fixes #18574
4 years ago
Dmitry Eliseev
4479c66522
Fixed phpdoc types
4 years ago
Bizley
7f6671cdfc
Update OWASP link
4 years ago
Alexander Makarov
4e2045c040
release version 2.0.41
4 years ago
Alexander Makarov
3883d73cea
Fix #9718 : Fix user staying authorized despite authKey change
4 years ago
Alexander Makarov
b3546e6fdb
Fix #18535 : Set Cookie SameSite to Lax by default
4 years ago
Bizley
d610853fdf
Fix #18450 : Allow empty string to be passed as a nullable typed argument to a controller's action
4 years ago
Bizley
2774f3ea6c
Fix #18529 : Fix asset files path with `appendTimestamp` option for non-root-relative base URLs
4 years ago
Brandon Kelly
f935065bca
Fix #18518 : Add support for ngrok’s `X-Original-Host` header
4 years ago
Bizley
03befccd48
Fix #18487 : Allow creating URLs for non-GET-verb rules
4 years ago
Isitar
bceba86952
Fix #18414 : Fix `AssetManager::appendTimestamp()` not appending timestamp for website root in sub-directory
4 years ago
Basil
890df1c867
Fix #18381 : The `yii\web\AssetManager` `$basePath` readable and writeable check has been moved to the `checkBasePathPermission()`. This check will run once before `publishFile()` and `publishDirectory()`
4 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
Alexander Makarov
835971c6f6
Fix Controller phpdoc annotations
4 years ago
Sergei Predvoditelev
306171b582
Add phpdoc for properties "request" and "response" in web and console controllers ( #18361 )
4 years ago
rhertogh
ce088e05df
Fix #18247 : Added support for the 'session.use_strict_mode' ini directive in `yii\web\Session`
4 years ago
杨晶旭
7ff516063d
Fix #18160 , fix #18192 : Fixed `registerFile` with argument depends set does not use the position and appendTimestamp argument, also modify the unit view
4 years ago
Walid Said
3dabcdb6ab
Fix #18313 : Fix multipart form data parse with double quotes
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
Alex
1d7baabab5
Fix #18297 : Replace usage of deprecated `ReflectionParameter::isArray()` method in PHP8
4 years ago
My6UoT9
affd796c5c
Updated phpdoc return type for getExceptionName ( #18296 )
...
`getExceptionName` can return null, as described in phpdoc.
4 years ago
Alexander Makarov
f34d160179
Remove unused use
4 years ago
Alexander Makarov
dab7a6c317
Update phpdoc
4 years ago
Brandon Kelly
eb956e9c6b
primary/replica in a definitely non-breaking way ( #18106 )
4 years ago
Brandon Kelly
fc4f449e21
Fix #18083 : Add `Controller::$request` and `$response`
4 years ago
Brandon Kelly
472600ee3f
Fix #18102 : Use “primary”/“replica” terminology instead of “master”/“slave”
4 years ago
Marco van 't Wout
9a3093442c
Use inheritDoc to replace outdated docblock ( #18100 )
4 years ago
Sam
4ea484ca68
Fix #17722 : Add action injection support
4 years ago
Alex
eb7b23d117
Fix #18048 : Use `Instance::ensure()` to set `User::$accessChecker`
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
Alexander Makarov
fbd7eded2d
Bug #17933 : Log warning instead of erroring when URLManager is unable to initialize cache
5 years ago
Brandon Kelly
f8d417c42a
Fixed usage of non-existing ResponseEvent in yii\web\Response docs ( #17939 )
5 years ago