Skip to content

Commit 78bfd4b

Browse files
committed
Fix CSP for C 4.13
1 parent e1ad8ff commit 78bfd4b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Contao/Widgets/MultiColumnWizard.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,4 +1847,12 @@ private function getDescription(array $field): ?string
18471847

18481848
return null;
18491849
}
1850+
1851+
private function cspUnsafeInlineStyle(string $style): string
1852+
{
1853+
if (!method_exists(parent::class, 'cspUnsafeInlineStyle')) {
1854+
return $style;
1855+
}
1856+
return parent::cspUnsafeInlineStyle($style);
1857+
}
18501858
}

0 commit comments

Comments
 (0)