preserve configured SRI hashes

This commit is contained in:
El RIDO
2024-07-19 08:05:40 +02:00
parent 5ef8a094e7
commit 2b76898546
2 changed files with 9 additions and 0 deletions

View File

@@ -210,6 +210,10 @@ class Configuration
}
// check for missing keys and set defaults if necessary
else {
// preserve configured SRI hashes
if ($section == 'sri' && array_key_exists($section, $config)) {
$this->_configuration[$section] = $config[$section];
}
foreach ($values as $key => $val) {
if ($key == 'dir') {
$val = PATH . $val;