SilverFire - Dima Naumenko
ac7b0ef6ff
ErrorHandler - hardcoded UTF-8 in mb_* functions
...
As `Yii::$app` may be not initialized on the moment of error,
decided to hardcode UTF-8.
PR #10169
9 years ago
Mehdi Achour
06d499ab02
#10158 : Accept arrays for 'js' as well
...
Also applied @samdark comments on array testing
9 years ago
SilverFire - Dima Naumenko
a6e1ba2cf6
Fixed mb_ functions calls to use UTF-8 or app charset
9 years ago
Mehdi Achour
cf01d5ff92
Use PHP type casting instead of ArrayHelper
9 years ago
Mehdi Achour
5619e98eda
Allow setting css options per CSS file in AssetBundle::, fixes #10158
9 years ago
SilverFire - Dima Naumenko
e3c49f243c
UrlRule::placeholders, UrlRule::substitutePlaceholderNames are now protected. Updated PHPDoc and UPDATE.md
9 years ago
SilverFire - Dima Naumenko
289b051c4a
Bug #9999 : Fixed `yii\web\UrlRule` to allow route parameter names with `-`, `_`, `.`characters
9 years ago
Alexander Makarov
fe4cbd30d6
Fixes #9803 : Added option to register asset with scheme (reverted from commit 57dc8540fd
)
9 years ago
Nikita Verkhovin
57dc8540fd
Fixes #9803 : Added option to register asset with scheme
9 years ago
kidol
4bc2eb7945
Fixes controller DI
9 years ago
Alexander Makarov
8260cfa4ea
Compare with null instead of isset
9 years ago
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
9 years ago
nainoon
3a313ac652
Fixes #9874 : Fixed outputting exception stacktrace in non-debug mode when `Response::FORMAT_RAW` is used
9 years ago
Alexander Makarov
0712bad090
Fixes #9846 : Fixed `yii\web\User::loginRequired()` should throw 401 not 403 (reverted from commit 4e715f9d65
)
...
See https://github.com/yiisoft/yii2/issues/9846#issuecomment-146891825
9 years ago
spikyjt@gmail.com
4e715f9d65
Fixes #9846 : Fixed `yii\web\User::loginRequired()` should throw 401 not 403
9 years ago
jeicd
c2f83da8d8
Fix phpdoc
9 years ago
jeicd
0407407b76
fix coding style to follow PSR-2
9 years ago
Alexander Makarov
fbe5bb7d20
Fixed generation of canonical URLs for `ViewAction` pages
9 years ago
Kevin LEVRON
bc543db206
fix doc
9 years ago
mdmunir
b7020065c8
Fixes #9476 : Added DI injection via controller action method signature
9 years ago
Carsten Brandt
73d6f32234
fixed name conflict between class and file name for UnprocessableEntityHttpException
...
pr #9733
9 years ago
Boudewijn Vahrmeijer
dd818e17df
Fixes #9754 : Fixed `\yii\web\Request` error when path info is empty
9 years ago
janfrs
194b80b00e
Fix comment msg UnprocessableEntity #2106
9 years ago
janfrs
07199cbf61
Change to since 2.0.7 on UnprocessableEntity #2106
...
Thanks to @Renkas for noticing
9 years ago
janfrs
7562fe940e
Add Unprocessable Entity Exception as in #2106
9 years ago
bpteam
703f374a85
Fixes #9596 : Fixed `\yii\web\UrlManager::createAbsoluteUrl(['site/index', '#' => 'testHash'])` losing hash
9 years ago
Carsten Brandt
5a069d1a3c
Fixed inappropriate error response on invalid JSON request
...
Current API responds to invalid JSON with:
```json
HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=UTF-8
...
{"name":"Bad Request","message":"Invalid JSON data in request body: Syntax error.","code":0,"status":400,"previous":{"name":"Internal Server Error","message":"There was an error at the server.","code":0,"status":500}}
```
While it should be
```json
HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=UTF-8
...
{"name":"Bad Request","message":"Invalid JSON data in request body: Syntax error.","code":0,"status":400}
```
9 years ago
Sebastian Chojniak
f9c776ca5f
GroupUrlRule: if $this->routePrefix is unset then only one trim is called
9 years ago
Alexander Kochetov
223b0bea5d
Fixes #9369 : `Yii::$app->user->can()` now returns `false` instead of erroring in case `authManager` component is not configured
9 years ago
Carsten Brandt
abc7dbbf0f
added missing `@since` annotations
9 years ago
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
9 years ago
Carsten Brandt
6e3da6b329
various phpdoc fixes
9 years ago
Carsten Brandt
a2568d1ec8
updated some comments and `@since` annotations
9 years ago
Alexander Makarov
372211a865
Better type check in AssetManager
9 years ago
Alexander Makarov
6312f2adad
#9249 : fixed wrong condition
9 years ago
Alexander Makarov
6987358e2a
#9249 : better check for file/dir
9 years ago
Alexander Makarov
d3e91abf00
Added `@since` tag to `yii\web\AssetManager::$hashCallback`
9 years ago
Petra Barus
2261db0a5f
Adding callback for custom hash generation in AssetManager.
9 years ago
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
9 years ago
Alexander Makarov
9a87271abf
Fixed missing stacktrace items on PHP syntax errors of "unexpected end of file" type
9 years ago
Chris Harris
26e5b021a8
Fixes #9246 : Added `yii\web\UrlRule::getParamRules()`
9 years ago
Klimov Paul
984afd3c6e
`yii\web\ErrorAction` displays 404 error instead of blank page on direct access
9 years ago
zetamen
df6f270a0e
Fixes #9161 : Fixed `yii\web\Request` ignore `queryParams` when resolve request
9 years ago
Alexander Makarov
b53f50a762
Reverted #9140
...
See discussion at ef27d820d2
9 years ago
Alexander Makarov
ef27d820d2
#9140 : better fix for IDEs
9 years ago
matthewyang
fed6f35627
remove redefined parent property
9 years ago
Alexander Makarov
4e3b82bb25
Fixed `ViewAction::resolveViewName()` not to accept `/../` and `/./`
...
Fixes #9070 (CVE-2015-5467)
9 years ago
Alexander Makarov
aaf931a5e8
Fixes #9070 : Fixed `ViewAction::resolveViewName()` not to accept `/../` and `/./`
9 years ago
Sebastian Chojniak
025845e660
performance: unnecessary (when result is cached) getAuthManager() removed
9 years ago
Carsten Brandt
5d3532c649
fixed endless error loop in error handler
...
this happended when `stream` was set on the response but the stream resouce was invalid
either because it was already sent or became invalid for some other cases.
fixes #9046
9 years ago