Commit Graph

47 Commits

Author SHA1 Message Date
Robert Korulczyk
8142de23d4 Improve normalizer for URL manager 2016-08-30 21:25:23 +02:00
Cronfy
a7f63b6da3 Add normalizer for URL manager. 2016-08-30 21:22:58 +02:00
Carsten Brandt
9cac1317b9 added test for #11801 2016-06-25 19:09:12 +02:00
Carsten Brandt
17d08cc0a4 fixed crash on non-string input to CSRF token
fixes #11822

also adding proper unit tests for validate CSRF token.
2016-06-25 18:22:27 +02:00
Sam
cf820a98d7 Fixed issue #11712: DbSessionTest is now skipped when SQLite is not available. (#11714) 2016-06-07 12:22:22 +02:00
maine-mike
7249a6c99e Move Identity Cookie code into separate functions 2016-05-22 12:12:04 +03:00
SilverFire - Dmitry Naumenko
0ff6eeba7d Enhanced 9f499eb: yii\web\User::checkRedirectAcceptable() removed check for "*" type (invalid in accept header) 2016-05-16 01:11:47 +03:00
SilverFire - Dmitry Naumenko
9f499eb51e Fixed yii\web\User::checkRedirectAcceptable() to treat acceptable content type */* as *
Closes #11523
2016-05-15 22:27:40 +03:00
SilverFire - Dmitry Naumenko
813d1d9c31 DbSessionTest::testMigration() does not display migration process anymore (insted of 8de6fde) 2016-04-25 11:30:08 +03:00
SilverFire - Dmitry Naumenko
8de6fde989 Added Console helper mock, updated DbSessionTest::testMigration() to hide migration process output 2016-04-25 11:19:15 +03:00
SilverFire - Dmitry Naumenko
f21e472c98 Update UserTest::testLoginRequired(), CHANGELOG 2016-04-22 22:22:02 +03:00
maine-mike
ad6047e09f Fixes #10480: Fixed removing old identity cookie when loggin in as another user without logging out first 2016-04-12 02:19:34 +03:00
mdmunir
d437c4bd37 Add session migration 2016-04-09 20:45:59 +03:00
Sam Mousa
c7436909f4 Added optional $checkHeader param to loginRequired for checking the Accept header; defaults to true.
Added changelog line.

Fixed DbSessionTest

Added version annotations.

Improvements to phpdoc and whitespace.
2016-03-23 00:08:01 +02:00
Klimov Paul
6066b63c6e UrlManagerTest fixed 2016-03-09 10:37:13 +02:00
SilverFire - Dmitry Naumenko
8e1ab29592 Changelog updated 2016-03-09 00:01:53 +02:00
Sam Mousa
c4e782725c Fixed cache key collision in yii\web\UrlManager::createUrl()
Closes #10935
2016-03-09 00:01:31 +02:00
SilverFire - Dmitry Naumenko
4dc771d0a0 Fixed DbSessionTest 2016-02-25 12:35:16 +02:00
SilverFire - Dmitry Naumenko
1e1baec6e6 Reverted c478199 2016-02-25 12:14:22 +02:00
SilverFire - Dmitry Naumenko
c478199937 Added property yii\web\DbSession::encodeData to encode/decode session data in base64 on session read/write
Closes #6173
2016-02-25 00:17:26 +02:00
quantum
7b46bd1f7c Fixes #10451: Check of existence of $_SERVER in \yii\web\Request before using it 2016-02-15 23:22:45 +03:00
Carsten Brandt
42b8569846 Revert DI injection via controller action method signature
reverts b7020065c and related commits.
reverts implementation of #9476

For reasons, see discussion https://github.com/yiisoft/yii2/issues/9476#issuecomment-179749039
2016-02-06 18:40:50 +01:00
Andrew Nester
fecd4dcfa5 10739 - Multiple slashes at the end of route should not be accepted as valid url 2016-02-05 16:38:49 +03:00
Andrew Nester
a0ca37ed6a 10545 - Fix for XMLResponseFormatter to format models in a proper way 2016-02-05 14:31:12 +03:00
Andrew Nester
d282d5fe7f Updated doc block for SessionTest 2016-01-19 13:47:24 +03:00
Andrew Nester
ab25b8a358 10218 - Fix for session regenerate id issue that occured after user logged out #10218 2016-01-19 13:02:43 +03:00
quantum
cdc5fc8156 mistake in test 2015-12-29 01:05:57 +10:00
SilverFire - Dmitry Naumenko
01a6235059 #9333: Fixed AssetManager to publish bundles using symlink with nested directories in hash
Closes #9333
2015-12-20 16:24:40 +02:00
Carsten Brandt
d9f8933737 added prettyPrint option to JsonResponseFormatter
fixes #9762
close #10412
2015-12-18 02:42:59 +01:00
Carsten Brandt
d6c45d36ce added test to verify #10204 2015-11-27 18:42:37 +01:00
Alexander Makarov
45432cc653 #9528: added missing data provider for JSON formatter test, added changelog and upgrade note, added @since tag to new property 2015-11-25 05:52:15 +03:00
MaXL
4f81b4a99d Fixes #9528: Traversable objects are now formatted as arrays in yii\web\XmlResponseFormatter to support SPL objects and Generators 2015-11-25 05:51:12 +03:00
Mehdi Achour
faa7a731c7 #10158: Remove defer attribute value from test case
Also fixed the CHANGELOG.md entry positionning
2015-11-19 13:05:13 +01:00
Mehdi Achour
06d499ab02 #10158: Accept arrays for 'js' as well
Also applied @samdark comments on array testing
2015-11-17 10:55:05 +01:00
Mehdi Achour
5619e98eda Allow setting css options per CSS file in AssetBundle::, fixes #10158 2015-11-16 15:12:14 +01:00
SilverFire - Dima Naumenko
8d80616cb6 Bug #9999: added PHPUnit test case to UrlRuleTest 2015-11-01 14:49:42 +02:00
Alexander Makarov
fe4cbd30d6 Fixes #9803: Added option to register asset with scheme (reverted from commit 57dc8540fd) 2015-10-29 12:38:42 +03:00
Nikita Verkhovin
57dc8540fd Fixes #9803: Added option to register asset with scheme 2015-10-28 14:08:56 +03:00
kidol
4bc2eb7945 Fixes controller DI 2015-10-12 15:52:19 +02:00
mdmunir
b7020065c8 Fixes #9476: Added DI injection via controller action method signature 2015-09-27 19:35:43 +03:00
Alexander Makarov
80d377ea57 Adjusted test for #9596 2015-09-05 11:41:03 +03:00
Alexander Makarov
6f0bb29e7a Added test for #9596 2015-09-05 01:04:35 +03:00
Carsten Brandt
854e186210 fixed caching issue with UrlManager::createUrl
this fix will skip the cache in case we encounter a situation which can
not easily be cached.

fixes #9091
2015-08-03 00:31:59 +02:00
zetamen
df6f270a0e Fixes #9161: Fixed yii\web\Request ignore queryParams when resolve request 2015-07-21 10:40:31 +03:00
Alexander Makarov
372ff87ee4 Test for #8228 2015-06-17 23:14:33 +02:00
Klimov Paul
d9d1fceef6 Unite test for yii\web\DbSession added 2015-06-09 12:57:48 +03:00
Alexander Makarov
6949992246 Simplified tests directory structure a bit 2015-04-16 12:10:01 +03:00