Commit Graph

408 Commits

Author SHA1 Message Date
Qiang Xue
91e41b0470 Fixes #5001: yii\rest\CreateAction, yii\rest\UpdateAction and yii\rest\DeleteAction should throw 500 error if the model operation returns false without validation errors 2014-09-12 13:49:34 -04:00
Alexander Kochetov
090e550a3d Rename \yii\web\User component param for consistency 2014-09-10 05:55:07 +04:00
Qiang Xue
b1e7c753ae Fixes #2702: added doc about customizing error response format [skip ci] 2014-09-07 12:40:50 -04:00
Alexander Makarov
4832760604 Removed unused "use" statements 2014-09-07 15:46:54 +04:00
Veaceslav Medvedev
48821a8c2c Update UrlManager.php 2014-09-04 22:27:23 +03:00
Alexander Makarov
a20f82dcfa Fixes #4919 2014-09-04 20:44:36 +04:00
Qiang Xue
262a77caca Added yii\web\Response::enableCsrfCookie to support storing CSRF tokens in session 2014-09-04 12:20:09 -04:00
Qiang Xue
d6fd45079e typo fix. 2014-09-03 12:23:16 -04:00
Carsten Brandt
92b958cd33 fixed return value of yii\web\Request::getPrefferedLanguage
ensure it is one of the input values

fixes #4880
2014-09-01 12:46:38 +02:00
Qiang Xue
fa0418f8a1 Fixes #4424: Added inline and mimeType options to all file downloading methods provided in yii\web\Response 2014-08-30 22:13:42 -04:00
Qiang Xue
f3105f736a Fixes #3283: Added $checkAjax to yii\web\User::loginRequired() 2014-08-26 22:29:40 -04:00
Alexander Makarov
355c26df8b Fixes #4188: API exceptions are now exposing less data when YII_DEBUG is false
- If exception is internal it's always returned as HTTP 500 general purpose one.
- Type isn't exposed anymore.
2014-08-27 00:50:02 +04:00
Jin Hu
3a7ed9b1a9 Added yii\web\Request::setRawBody() 2014-08-20 23:14:48 +08:00
Klimov Paul
fe36bc9ecd options parameter extracted at yii\web\Response::xSendFile() 2014-08-19 16:31:42 +03:00
Klimov Paul
e3cea2138a Added forceDownload parameter to yii\web\Response::xSendFile() 2014-08-19 12:18:35 +03:00
Qiang Xue
1cfa5bc9ee Fixes #4740: Added yii\web\Session::addFlash() 2014-08-18 14:20:09 -04:00
restyler
f1aeac5dc2 addFlash method was implemented 2014-08-18 14:14:24 -04:00
restyler
3d2cac534c Multiple flash messages per type support 2014-08-18 14:14:23 -04:00
Alexander Makarov
90c6a476ce Fixes #4727: Fixed wrong Stylus definition in \yii\web\AssetConverter 2014-08-17 01:18:55 +04:00
Qiang Xue
88d38b7820 Fixes #4501: Renamed the constant YII_PATH to YII2_PATH 2014-08-14 22:17:05 -04:00
Paweł 'Zibi' Zaremba
c6c29db9b4 Fixes #4636: Added yii\web\Response::setDownloadHeaders() 2014-08-14 22:01:10 -04:00
Damian Dennis
aec7dca2cd added source map generation so that styling can be debugged easily. 2014-08-13 12:48:41 +10:00
Qiang Xue
0cdf2f5171 Fixed code break. 2014-08-06 10:27:37 -04:00
Qiang Xue
dee0382c1f Added yii\base\InvalidValueException.
Refactored `yii\web\User`.
2014-08-06 10:07:14 -04:00
Qiang Xue
7a55aea247 Fixes #4600 2014-08-05 07:53:20 -04:00
Tadas Z
f010fb57b4 Enh #4581: Added ability to disable url encoding in UrlRule. 2014-08-04 00:07:36 +03:00
Carsten Brandt
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
Carsten Brandt
1f31f27787 phpdoc 2014-07-29 22:19:14 +02:00
Carsten Brandt
08a480c6e6 make Request more robust against invalid CSRF data
fixes #4514
2014-07-29 20:13:57 +02:00
tom--
2c5c2c101b Fixes #4131: Security adjustments 2014-07-26 03:29:30 +04:00
Alexander Makarov
0edd8bc65a Fixed missing and incorrect phpdoc 2014-07-25 17:26:35 +04:00
Alexander Makarov
07f01bcf2b Used substr_compare instead of substr when we don't care about result 2014-07-23 16:37:49 +04:00
Qiang Xue
4e4e76e883 Request::cookieValidationKey must be explicitly specified now. 2014-07-19 15:39:03 -04:00
OmgDef
697a85dd26 Check for UPLOAD_ERR_NO_FILE in UploadedFile
fixes #4276, close #4358
2014-07-19 11:57:14 +02:00
Qiang Xue
e5a87af234 Fixes #4331: yii\helpers\Url now uses UrlManager to determine base URL when generating URLs 2014-07-17 21:51:37 -04:00
Carsten Brandt
4717571e22 improved docs about goBack()
fixes #4343
2014-07-17 20:45:44 +02:00
Nikola Kovacs
f6c589f043 Add absoluteAuthTimeout to yii\web\User.
This is based on the code from Yii 1.1.14 by Ivo Kund.
2014-07-16 10:46:11 +02:00
Carsten Brandt
f4c451b2ee Merge pull request #4285 from yiisoft/global-asset-config
Improved global configuration of assetmanager
2014-07-12 14:34:35 +02:00
Carsten Brandt
8b70a55b14 Improved global configuration of assetmanager
Added `beforeCopy`, `afterCopy`, `forceCopy` properties to AssetManager

fixes #4209
2014-07-12 13:51:05 +02:00
Alexander Makarov
5296da3390 Adjusted phpdoc 2014-07-11 14:53:52 +04:00
Qiang Xue
acaa4f8194 Fixes #4204: yii\web\Request::getUserIP() will return null if it cannot detect user IP address 2014-07-04 09:14:01 -04:00
Alexander Makarov
f66e28c4aa Fixes #4199: added missing category to logging calls 2014-07-04 11:40:30 +03:00
Qiang Xue
9c4d4715dd guide WIP [skip ci] 2014-07-03 08:33:09 -04:00
Qiang Xue
399b6b18e3 Fixes #4103 2014-06-28 21:58:07 -04:00
Klimov Paul
2bab6259d1 'Security' helper usage switched to 'security' application component. 2014-06-27 14:31:08 +03:00
Carsten Brandt
739f5fda48 Merge pull request #4061 from yiisoft/fix-headers
attempt to fix multiple header issue
2014-06-26 00:05:41 +02:00
Qiang Xue
c6f711ccca Fixes #3765: Added yii\web\User::enableSession to support authentication without using session 2014-06-25 16:21:54 -04:00
Carsten Brandt
109c4b44bc attempt to fix multiple header issue
fixes #3893
2014-06-25 20:39:19 +02:00
Carsten Brandt
6578cfbdab updated phpdoc and classmap 2014-06-25 18:24:23 +02:00
Carsten Brandt
a28589203f do not show debug info for UserException 2014-06-24 10:21:55 +02:00