941 Commits

Author SHA1 Message Date
88a7a00458 release version 2.0.42 2021-05-06 00:08:29 +03:00
08a133e728 Update docs for #9718 (#18623)
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-05-05 12:47:38 +03:00
209cf9b2de Improve docs 2021-04-30 09:55:46 +02:00
629133f1bf Fix #18619: Do not modify yii\web\Cookie::$path on yii\web\Response::sendCookies() 2021-04-27 21:10:13 +03:00
a6dba47963 Fix #18590: Fix yii\web\UrlManager to instantiate cache only when it's actually needed 2021-04-10 13:02:23 +03:00
14a581562a Fix #18566: Throw the original exception when yii\web\Controller::bindInjectedParams() catches HttpException 2021-03-23 21:38:52 +03:00
74d1842dee Use the correct db if strict mode is used in DbSession fixes #18574 2021-03-18 15:39:57 +01:00
4479c66522 Fixed phpdoc types 2021-03-12 23:41:48 +03:00
7f6671cdfc Update OWASP link 2021-03-10 22:51:34 +03:00
4e2045c040 release version 2.0.41 2021-03-04 00:51:35 +03:00
3883d73cea Fix #9718: Fix user staying authorized despite authKey change 2021-03-03 13:18:06 +03:00
b3546e6fdb Fix #18535: Set Cookie SameSite to Lax by default 2021-03-03 10:12:20 +03:00
d610853fdf Fix #18450: Allow empty string to be passed as a nullable typed argument to a controller's action 2021-03-02 14:24:17 +03:00
2774f3ea6c Fix #18529: Fix asset files path with appendTimestamp option for non-root-relative base URLs 2021-02-27 15:06:08 +03:00
f935065bca Fix #18518: Add support for ngrok’s X-Original-Host header 2021-02-16 20:04:58 +03:00
03befccd48 Fix #18487: Allow creating URLs for non-GET-verb rules 2021-01-26 14:47:53 +03:00
bceba86952 Fix #18414: Fix AssetManager::appendTimestamp() not appending timestamp for website root in sub-directory 2020-12-23 12:57:29 +03:00
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() 2020-11-23 23:06:25 +03:00
6b33ddf441 Fix #18199: Fix content body response on 304 HTTP status code, according to RFC 7232 2020-11-23 23:05:04 +03:00
279f59a3d4 Fix #18394: Add support for setting yii\web\Response::$stream to a callable 2020-11-23 22:56:59 +03:00
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
835971c6f6 Fix Controller phpdoc annotations 2020-11-02 13:13:11 +03:00
306171b582 Add phpdoc for properties "request" and "response" in web and console controllers (#18361) 2020-11-01 17:38:32 +03:00
ce088e05df Fix #18247: Added support for the 'session.use_strict_mode' ini directive in yii\web\Session 2020-10-31 11:58:34 +03:00
7ff516063d Fix #18160, fix #18192: Fixed registerFile with argument depends set does not use the position and appendTimestamp argument, also modify the unit view 2020-10-11 15:03:12 +03:00
3dabcdb6ab Fix #18313: Fix multipart form data parse with double quotes 2020-10-05 13:08:32 +03:00
88e79d3f8e Fix #18290: Fix response with non-seekable streams 2020-10-02 11:48:02 +03:00
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 `|`
2020-09-30 02:34:23 +03:00
1d7baabab5 Fix #18297: Replace usage of deprecated ReflectionParameter::isArray() method in PHP8 2020-09-22 00:26:37 +03:00
affd796c5c Updated phpdoc return type for getExceptionName (#18296)
`getExceptionName` can return null, as described in phpdoc.
2020-09-21 23:03:02 +03:00
f34d160179 Remove unused use 2020-08-05 09:23:12 +03:00
dab7a6c317 Update phpdoc 2020-07-20 02:44:55 +03:00
eb956e9c6b primary/replica in a definitely non-breaking way (#18106) 2020-06-16 11:33:27 +03:00
fc4f449e21 Fix #18083: Add Controller::$request and $response 2020-06-14 21:19:27 +03:00
472600ee3f Fix #18102: Use “primary”/“replica” terminology instead of “master”/“slave” 2020-06-14 00:12:10 +03:00
9a3093442c Use inheritDoc to replace outdated docblock (#18100) 2020-06-13 12:50:34 +03:00
Sam
4ea484ca68 Fix #17722: Add action injection support 2020-06-12 10:06:18 +03:00
eb7b23d117 Fix #18048: Use Instance::ensure() to set User::$accessChecker 2020-05-19 18:42:13 +03:00
975937e531 Fix #18006: Allow SameSite cookie pre PHP 7.3 2020-05-01 13:28:23 +03:00
13c14292c2 Fix #17948: Ignore errors caused by set_time_limit(0) 2020-04-05 11:55:26 +03:00
fbd7eded2d Bug #17933: Log warning instead of erroring when URLManager is unable to initialize cache 2020-03-26 23:21:35 +03:00
f8d417c42a Fixed usage of non-existing ResponseEvent in yii\web\Response docs (#17939) 2020-03-26 15:45:39 +03:00
65e5640810 Fix #17932: Fix regression in detection of AJAX requests (#17937) 2020-03-26 12:30:56 +03:00
7f88acb313 Fix #17878: Detect CORS AJAX requests without X-Requested-With in Request::getIsAjax() 2020-03-24 19:01:52 +03:00
4b6d3c0290 Fix #17929: Actions can now have bool typed params bound 2020-03-24 18:44:43 +03:00
ec089fea5a Fix #16721: Use Instance::ensure() to initialize UrlManager::$cache 2020-02-23 16:02:27 +03:00
55793471ea Fix #17875: Revert move_uploaded_file() function instead of copy() and unlink() for saving uploaded files when POST request 2020-02-20 12:22:01 +03:00
7ec7fd11ee Fix #17878: Added note about fetch() to Request::getIsAjax() phpdoc [skip ci] 2020-02-20 01:10:59 +03:00
15d425a3e3 Fix #17843: Fix yii\web\Session::setCookieParamsInternal check param "samesite" 2020-02-03 13:52:46 +03:00
82b7ecbdf3 Fix #17828: Fix yii\web\UploadedFile::saveAs() failing when error value in $_FILES entry is a string 2020-02-01 12:56:22 +03:00