Commit Graph

708 Commits

Author SHA1 Message Date
Dmitriy Bashkarev
be4ebdd049 Fixes #13134: Added logging URL rules (bashkarev) 2017-01-27 19:03:45 +03:00
Alexey Rogachev
37f19a0256 Fixes #13300, #13307, #13310, #13312
- Bug #13300: Allow pjax with "data-pjax" with no value in `yii.js`.
- Bug #13307: Preventing of race conditions in script filter in `yii.js` works incorrectly.
- Bug #13310: Handle relative and absolute URLs coincidence in CSS filter in `yii.js`.
- Bug #13312: `skipOuterContainers` option was incorrectly passed to pjax in `handleAction` in `yii.js`.
- Partially fixes #13299.

Adds tests for #8014, #11921, #10974, #11494, #10358, #10097.
2017-01-25 11:00:13 +03:00
Alexander Makarov
eab3489ec7 Reverted #13393: Removed redundant call to yii\helpers\Url::to() in yii\web\Controller::redirect() (reverted from commit e5d169beb8) 2017-01-24 13:09:57 +03:00
Klimov Paul
c73de31a90 Fixed yii\web\MultipartFormDataParser adds an extra newline to every value 2017-01-23 13:18:31 +02:00
Alexander Makarov
cc37cd626f Fixes #12599: Fixed MSSQL fail to work with nvarbinary. Enhanced SQL scripts compatibility with older versions 2017-01-23 10:31:52 +03:00
Robert Korulczyk
507cc52658 Allow omit default params on URL creation
Fixes #10970
2017-01-22 22:19:13 +02:00
Andrew Nester
21faee5504 Fixes #13212: Fixed DbSession::regenerateID() failure when session_regenerate_id() fails 2017-01-22 20:15:36 +03:00
Vladimir Kuprienko
e5d169beb8 Fixes #13393: Removed redundant call to yii\helpers\Url::to() in yii\web\Controller::redirect() 2017-01-22 11:56:52 +03:00
Alexander Makarov
97171a0db7 Fixes #13401: Fixed lack of escaping of request dump at exception screens 2017-01-18 01:05:50 +03:00
SilverFire - Dmitry Naumenko
24ad05de5b Refactored yii\web\ErrorAction to make it reusable 2016-12-31 21:29:12 +02:00
Alexander Makarov
c33583aede Fixed naming for #13214 as suggested by Paul 2016-12-26 22:42:14 +07:00
Alexander Makarov
8ba78398c7 Handle root tag set to null or false or empty. Fixed version in @since 2016-12-16 02:23:08 +03:00
Alexander Makarov
2f7c1b36b5 Fixes #12419: Added ability to remove root tag and object tags for yii\web\XmlResponseFormatter 2016-12-16 00:27:31 +03:00
mhthnz
1dcc6042b6 Initial work on #12419 2016-12-16 00:12:32 +03:00
zalatov
deea3cf798 Fixes #12854: Added RangeNotSatisfiableHttpException to cover HTTP error 416 file request exceptions 2016-12-02 00:51:49 +03:00
Carsten Brandt
081ee7c5b1 Implemented shortcut methods for returning JSON and XML (#13101)
fixes #13036
2016-12-01 10:33:49 +01:00
Klimov Paul
7da77c3d5a created HostControl filter to prevent Host header attacks
fixes #13050
close #13063
2016-12-01 00:59:26 +01:00
Robert Korulczyk
2d91723934 Add support for creating protocol-relative URLs.
Improve phpdoc for protocol-relative URL creation.
Remove useless `is_string()` check.
2016-11-29 09:53:51 +02:00
Carsten Brandt
a498dedb5c Added documentation about Host header attack (#13073)
* Added documentation about Host header attack

Added info about Host header attack (#13050) to the guide and the Request class.
When we introduce a filter or property to protect against this, these
sections should be updated to link to that option.
2016-11-26 21:57:52 +01:00
Carsten Brandt
b8b3aeeb00 update deprecated phpdoc messages 2016-11-22 16:03:28 +01:00
Evgeniy Tkachenko
bd9e68eb0a Optimize imports (#13033) 2016-11-17 17:12:56 +03:00
Robert Korulczyk
1a70f60332 Merge master into doc-fixes
Conflicts:
	framework/web/AssetManager.php
2016-11-13 15:35:18 +01:00
Robert Korulczyk
7a3a342127 Fix errors reported by apidoc extension. (#12986) 2016-11-13 14:51:21 +01:00
Robert Korulczyk
450eefaa50 Some phpdoc fixes from scrutinizer. 2016-11-12 22:11:30 +01:00
Boudewijn Vahrmeijer
95f2c82009 Fixed the cryptic unstructured doc block (#12978) [skip ci] 2016-11-12 17:05:13 +03:00
Robert Korulczyk
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
Boudewijn Vahrmeijer
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
Alexander Makarov
bea7c63664 And another leftover
No pushes to master today anymore. Need more sleep :(
2016-11-02 14:17:56 +03:00
Alexander Makarov
3d9945958d Removed accidentally committed leftovers 2016-11-02 14:13:49 +03:00
Alexander Makarov
dd71fa3958 Fixes #4113: Error page stacktrace was generating links to private methods which are not part of the API docs 2016-11-02 13:42:11 +03:00
Alexander Makarov
0ac321370b Fixes #12856: Fixed yii\web\XmlResponseFormatter to use true and false to represent booleans 2016-10-29 21:57:48 +03:00
Carsten Brandt
11fe407ad0 release version 2.0.10 2016-10-20 14:02:50 +02:00
Carsten Brandt
8d5daef88e more direct link in DbSession comment 2016-10-13 12:28:52 +02:00
SilverFire - Dmitry Naumenko
e23a419732 PHPDocs updated 2016-10-12 20:29:32 +03:00
Alexander Makarov
4b43183df7 Fixes #10563: Fixed forming Content-Disposition header for file downloads (#12721) 2016-10-12 11:41:21 +03:00
Robert Korulczyk
63f95fa3ad Fixes #11309: Added yii\web\Request::getHostName() method that returns hostname of current request 2016-10-07 01:00:14 +03:00
Klimov Paul
7ca2260702 UrlManager::normalizer creation fixed 2016-10-04 17:02:57 +03:00
SilverFire - Dmitry Naumenko
3861108553 Fixed casting of binnary() type for MSSQL. Closes #12599 2016-09-26 13:41:27 +03:00
SilverFire - Dmitry Naumenko
3ec3ce9312 Reverted #10429 because of BC breaking 2016-09-23 12:28:50 +03:00
SilverFire - Dmitry Naumenko
f3dc5c437d Fixed replacement of alias more than once in View::registerJsFile() and View::registerCssFile(), updated tests 2016-09-17 10:28:39 +03:00
SilverFire - Dmitry Naumenko
9931324e48 Fixed regression in View::registerJsFile, View::registerCssFile
Closes #12544
2016-09-15 21:23:19 +03:00
Carsten Brandt
ee8a8e90f8 update urlnormalizer docs 2016-09-15 14:52:32 +02:00
Roman Grinyov
2063115982 Docblock: jquery -> jQuery, javascript -> JavaScript (#12534) [skip ci] 2016-09-13 21:11:52 +02:00
Roman Grinyov
adde31ef10 Docblock: javascript -> JavaScript (#12533) [skip ci] 2016-09-13 21:02:58 +02:00
Klimov Paul
bda1dbe004 Fix unit test 2016-09-13 12:33:07 +03:00
Klimov Paul
821f035c90 UrlManager::normalizer disabled by default 2016-09-13 12:21:40 +03:00
SilverFire - Dmitry Naumenko
78edcd0b51 Fixed typo in yii\web\View::registerJsFile() 2016-09-12 18:23:29 +03:00
SilverFire - Dmitry Naumenko
c3622bb1ad Added tests for #10429 2016-09-10 15:41:39 +03:00
Evgeniy Tkachenko
fd6dd73cec AssetManager::getAssetUrl() fixed to get URL when appendedTimestamp is true 2016-09-10 12:46:54 +03:00
SilverFire - Dmitry Naumenko
494842636e 📖 Fixed client-side and server-side grammar in all files 2016-09-08 10:16:02 +03:00