mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
StaticController: Pass only strings to str_pad
as first argument
This commit is contained in:
parent
a965b5c44b
commit
55b4a5eb63
@ -91,7 +91,7 @@ class StaticController extends Controller
|
||||
}
|
||||
|
||||
$s = stat($filePath);
|
||||
$eTag = sprintf('%x-%x-%x', $s['ino'], $s['size'], (float) str_pad($s['mtime'], 16, '0'));
|
||||
$eTag = sprintf('%x-%x-%x', $s['ino'], $s['size'], (float) str_pad((string) $s['mtime'], 16, '0'));
|
||||
|
||||
$this->getResponse()->setHeader(
|
||||
'Cache-Control',
|
||||
|
Loading…
x
Reference in New Issue
Block a user