Skip to content

Commit de34d69

Browse files
authored
Merge pull request #354 from martijnc/restore-default-xss-confg
Restore deprecated XSS default configuration values
2 parents 2958114 + 4d4351b commit de34d69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DependencyInjection/Configuration.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ private function getXssProtectionNode(): ArrayNodeDefinition
338338
$node->setDeprecated('nelmio/security-bundle', '3.4.0', 'The "%node%" option is deprecated, use Content Security Policy without allowing "unsafe-inline" scripts instead.');
339339
$node
340340
->children()
341-
->booleanNode('enabled')->end()
342-
->booleanNode('mode_block')->end()
343-
->scalarNode('report_uri')->end()
341+
->booleanNode('enabled')->defaultFalse()->end()
342+
->booleanNode('mode_block')->defaultFalse()->end()
343+
->scalarNode('report_uri')->defaultNull()->end()
344344
->end();
345345

346346
return $node;

0 commit comments

Comments
 (0)