Bug 38365: Add <style to add_csp_nonces.pl to add nonce to style elements

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Lari Taskula <lari.taskula@hypernova.fi>
Signed-off-by: David Cook <dcook@prosentient.com.au>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
David Cook 2026-02-04 00:06:23 +00:00 committed by Jonathan Druart
parent 4971626204
commit f80451023e
No known key found for this signature in database
GPG Key ID: A085E712BEF0E0F0
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ sub process_file {
#
# We use a callback replacement to handle each match individually
$content =~ s{
(<script) # Capture opening <script
(<script|<style) # Capture opening <script or <style
( # Capture existing attributes
(?:
\s+ # Whitespace before attribute