8000 [HtmlSanitizer][FrameworkBundle] Fix calling `allowStaticElements` wh… · symfony/symfony@ba177ab · GitHub
[go: up one dir, main page]

Skip to content

Commit ba177ab

Browse files
committed
[HtmlSanitizer][FrameworkBundle] Fix calling allowStaticElements when setting allow_all_static_elements: true
1 parent 786e71c commit ba177ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2683,7 +2683,7 @@ private function registerHtmlSanitizerConfiguration(array $config, ContainerBuil
26832683
}
26842684

26852685
if ($sanitizerConfig['allow_all_static_elements']) {
2686-
$def->addMethodCall('allowAllStaticElements', [], true);
2686+
$def->addMethodCall('allowStaticElements', [], true);
26872687
}
26882688

26892689
// Configures elements

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@ public function testHtmlSanitizer()
20452045
$this->assertSame(
20462046
[
20472047
['allowSafeElements', [], true],
2048-
['allowAllStaticElements', [], true],
2048+
['allowStaticElements', [], true< 4955 /span>],
20492049
['allowElement', ['iframe', 'src'], true],
20502050
['allowElement', ['custom-tag', ['data-attr', 'data-attr-1']], true],
20512051
['allowElement', ['custom-tag-2', '*'], true],

0 commit comments

Comments
 (0)
0