mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
StaticController: Fix imgAction() not returning the correct content type for svg
This commit is contained in:
parent
d527ac2717
commit
c6f2783d2d
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user