Skip to content

Commit 2ca8da0

Browse files
cmoekesamdark
authored andcommitted
Fixes #17328: Added mime aliases for BMP and SVG files
1 parent 1f3e89d commit 2ca8da0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Diff for: framework/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Yii Framework 2 Change Log
66

77
- Bug #16509: Fixed console command help text wordwrap for multi-byte strings (alexkart)
88
- Bug #17299: Fixed adding of input error class in `\yii\widgets\ActiveField::widget` (alexkart)
9+
- Bug #17328: Added mime aliases for BMP and SVG files (cmoeke)
910

1011

1112
2.0.19 May 21, 2019

Diff for: framework/helpers/mimeAliases.php

+11
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,15 @@
66
*/
77
return [
88
'text/xml' => 'application/xml',
9+
'image/svg' => 'image/svg+xml',
10+
'image/x-bmp' => 'image/bmp',
11+
'image/x-bitmap' => 'image/bmp',
12+
'image/x-xbitmap' => 'image/bmp',
13+
'image/x-win-bitmap' => 'image/bmp',
14+
'image/x-windows-bmp' => 'image/bmp',
15+
'image/ms-bmp' => 'image/bmp',
16+
'image/x-ms-bmp' => 'image/bmp',
17+
'application/bmp' => 'image/bmp',
18+
'application/x-bmp' => 'image/bmp',
19+
'application/x-win-bitmap' => 'image/bmp',
920
];

0 commit comments

Comments
 (0)