forked from ORGANISATION-KA-INTERNATIONALE/FEDIVERSE-OKI
feat: improve security headers and csp nonce handling
This commit is contained in:
@@ -82,7 +82,7 @@ if ($heroType === 'none') {
|
||||
$bgImageStyle = 'background-image: url(\'' . htmlspecialchars(NEXT_LIVE_IMAGE) . '\');';
|
||||
}
|
||||
?>
|
||||
<div class="hero-next-live" style="<?php echo $bgImageStyle; ?>">
|
||||
<div class="hero-next-live" style="<?php echo $bgImageStyle; ?>" nonce="<?php echo getCspNonce(); ?>">
|
||||
<?php if (!empty(NEXT_LIVE_IMAGE) && file_exists(NEXT_LIVE_IMAGE)): ?>
|
||||
<div class="hero-next-live-image-container">
|
||||
<img src="<?php echo htmlspecialchars(NEXT_LIVE_IMAGE); ?>"
|
||||
|
||||
Reference in New Issue
Block a user