-
Notifications
You must be signed in to change notification settings - Fork 17
Fix: Respect outputowncss setting and add missing CSP nonce #463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -589,7 +589,7 @@ class="btn <?= $themeBase === $key ? 'btn-primary' : 'btn-default' ?>"> | |
| } | ||
| </style> | ||
|
|
||
| <script> | ||
| <script nonce="<?= rex_response::getNonce() ?>"> | ||
|
Comment on lines
588
to
+592
|
||
| (function() { | ||
| 'use strict'; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$cssFrameworkMode is read without a default value, but later the fragment does strict checks against an empty string ("'' === $cssFrameworkMode"). If the config value is null on older installs, this will incorrectly suppress the inline CSS/style output even though no framework mode is active. Use the established pattern
$addon->getConfig('css_framework_mode', '')so the value is always a string and the comparisons behave as intended.