View | Details | Raw Unified | Return to bug 38365
Collapse All | Expand All

(-)a/Koha/Template/Plugin/Koha.pm (-2 / +6 lines)
Lines 172-178 It should be cached by Koha::Middleware::ContentSecurityPolicy. Link Here
172
=cut
172
=cut
173
173
174
sub CSPNonce {
174
sub CSPNonce {
175
    return Koha::ContentSecurityPolicy->new->get_nonce;
175
    my $csp = Koha::ContentSecurityPolicy->new();
176
    my $nonce;
177
    if ( $csp->is_enabled ) {
178
        $nonce = $csp->get_nonce;
179
    }
180
    return $nonce;
176
}
181
}
177
182
178
1;
183
1;
179
- 

Return to bug 38365