Paul Klimov
e0a7baf631
Move uploaded files inside Request ( #14801 )
...
Uploaded Files management moved to `Request`
7 years ago
Klimov Paul
8854793834
unit test fix
7 years ago
Klimov Paul
e7943971d2
`yii\web\Request::getBodyParams()` now generates 415 'Unsupported Media Type' error on invalid or missing 'Content-Type' header
7 years ago
Paul Klimov
e703645b4d
Change `RequestParserInterface::parse()` to accept whole `Request` instance ( #14784 )
...
`RequestParserInterface::parse()` signature changed to accept `Request` instance
7 years ago
Klimov Paul
5c7bdb32a6
fix unit tests
7 years ago
Klimov Paul
37580db6b1
unit test fix
7 years ago
Klimov Paul
722022f744
HTTP headers checks refactored to use PSR-7 abstraction
7 years ago
Klimov Paul
2e01076abc
`yii\filters\ContentNegotiator` now generates 406 'Not Acceptable' instead of 415 'Unsupported Media Type' on content-type negotiation fail
7 years ago
Klimov Paul
89c14b7dea
Fixed `yii\filters\VerbFilter` uses case-insensitive comparison for the HTTP method name
7 years ago
Paul Klimov
e82b9c72f3
Fix #11328 PSR-7 HTTP Message Integration ( #14701 )
...
Add PSR-7 'HTTP Message'
7 years ago
Paul Klimov
3e6f8b1c19
Fix #13702 PSR Logger ( #14611 )
...
Refactor `Logger` to be PSR compatible extracting Profiler
7 years ago
Paul Klimov
4d9204d9f3
Fixes #879 : Caching implementation refactored according to PSR-16 'Simple Cache' specification
7 years ago
Paul Klimov
28b26fb74b
fix unit test
7 years ago
Ruitang Du
003d83c6e0
Fixes #14671 : use `random_int()` instead of `mt_rand()` to generate cryptographically secure pseudo-random integers
7 years ago
Paul Klimov
a015795c7b
Refactor CAPTCHA extracting Driver ( #14632 )
...
CAPTCHA Driver extracted
7 years ago
Paul Klimov
f590670ac9
Fix #9260 introduce `yii\mail\Template` class, allowing view rendering in isolation ( #13809 )
...
Introduce `yii\mail\Template` class, allowing view rendering in isolation
7 years ago
Boudewijn Vahrmeijer
209bcf0773
fix broken PHPDefaultFormat test with correct expected outputs ( #14560 )
7 years ago
Boudewijn Vahrmeijer
6605d9830b
Fix risky test by add expects assertions ( #14559 )
7 years ago
Boudewijn Vahrmeijer
31a405bf80
Recreate test based on naming & consistency with previous test ( #14557 )
7 years ago
Alexander Makarov
42a7f2b012
Use APCu instead of APC in travis
7 years ago
Alexander Makarov
cc869d2587
Fixed some OS-dependent checks in tests
7 years ago
Alexander Makarov
2875624600
::className() -> ::class
7 years ago
Alexander Makarov
0b421596a0
Fixed AssetBundleTest to work on Windows
7 years ago
Alexander Makarov
e52e1124c1
Fixed ViewTest to use OS-dependent newline under Windows
7 years ago
Alexander Makarov
a94e804ae4
Cleaned up everything that isn't needed for PHP 7.1 ( #14511 )
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
85df384e8f
Fixes #14178 : Removed HHVM-specific code
7 years ago
Alexander Makarov
6100194bf7
Removed PHPUnit6 compatibility polyfill, fixed some tests
7 years ago
Robert Korulczyk
6782ad96f0
Reduce `Segmentation fault` errors for PHP 5.4 tests on travis. ( #14092 )
7 years ago
Alexander Makarov
207f8cc0d5
Merge fixes
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
Carsten Brandt
758f01934f
Make PHPUnit run on PHP 7.2
...
fix PHPUnit at 4.8.34 as the next version breaks our compatibility
Layer:
a55235c033
7 years ago
Carsten Brandt
69673c0c94
Rename Object -> BaseObject for PHP 7.2 compatibility
...
issue #7936
7 years ago
Alexander Makarov
000192522b
Fixes #14482 : fixed tests incompatibility with PHP 5.4
7 years ago
Alexander Makarov
d38908fc13
Fixed #14469 : updated RFC links
7 years ago
Carsten Brandt
aba0b4a59a
added test that fails #14413
...
See #13979
close #14413
7 years ago
Alex
59002a9e1e
Fixes #6644 : Added `yii\helpers\ArrayHelper::setValue()`
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
Dmitry Dorogin
6e223e6db2
Fixes #14423 : Fixed `ArrayHelper::merge` behavior with null values for integer-keyed elements
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
173108b5b0
Move getTablesUsedInFrom() from ActiveQuery to Query
...
enable this feature on the Query level
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