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:
parent
4971626204
commit
f80451023e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue