Skip to content

Commit 30b511b

Browse files
committed
Add CSP support for frontend
1 parent 56dde64 commit 30b511b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Contao/Widgets/MultiColumnWizard.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,9 @@ protected function generateTable(
15491549
$return .= '<td'
15501550
. ($itemValue['valign'] !== '' ? ' valign="' . $itemValue['valign'] . '"' : '')
15511551
. ($itemValue['tl_class'] !== '' ? ' class="' . $itemValue['tl_class'] . '"' : '')
1552-
. ($itemValue['wrapper_style'] !== '' ? ' style="' . $this->cspUnsafeInlineStyle($itemValue['wrapper_style']) . '"' : '')
1552+
. ($itemValue['wrapper_style'] !== ''
1553+
? ' style="' . $this->cspUnsafeInlineStyle($itemValue['wrapper_style']) . '"'
1554+
: '')
15531555
. '>'
15541556
. $itemValue['entry']
15551557
. '</td>';
@@ -1714,7 +1716,8 @@ protected function generateDiv(
17141716
? ' class="' . $itemValue['tl_class'] . '"'
17151717
: '')
17161718
. ($itemValue['wrapper_style'] !== ''
1717-
? ' style="' . $this->cspUnsafeInlineStyle($itemValue['wrapper_style']) . '"'
1719+
? ' style="' . $this->cspUnsafeInlineStyle($itemValue['wrapper_style'])
1720+
. '"'
17181721
: '')
17191722
. '>'
17201723
. $itemValue['entry']

0 commit comments

Comments
 (0)