StaticController: Fix imgAction() not returning the correct content type for svg

This commit is contained in:
Johannes Meyer 2015-12-07 14:18:57 +01:00
parent d527ac2717
commit c6f2783d2d
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ class StaticController extends Controller
}
if (preg_match('/\.([a-z]+)$/i', $file, $m)) {
$extension = $m[1];
if ($extension === 'svg') {
$extension = 'svg+xml';
}
} else {
$extension = 'fixme';
}