Bug 41324: Adjust test for bug 38365
The script tags now contain a TT tag <script nonce="[% Koha.CSPNonce | $raw %]"> It's not a problem. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
62ca5e0eac
commit
a1c7b7062c
|
|
@ -35,7 +35,10 @@ for my $file (@tt_files) {
|
|||
my ( $in_script, $has_tt_tags, $has_kohaTable );
|
||||
for my $line (@lines) {
|
||||
|
||||
$in_script ||= $line =~ m{<script};
|
||||
if ( $line =~ m{<script} ) {
|
||||
$in_script = 1;
|
||||
next;
|
||||
}
|
||||
|
||||
if ( $line =~ m{<\/script>} ) {
|
||||
if ( $has_kohaTable && $has_tt_tags ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue