From da11d2e72985d015b7c21b5f9eec85935dfdba1d Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 1 Jul 2018 07:51:05 +0200 Subject: [PATCH] fixing SRI hash generation, broken by yesterdays Cloudflare fix that changed the script tag format --- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- tst/Bootstrap.php | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 7f4ca71..8cebe76 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -42,7 +42,7 @@ endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index d8166ea..7c2139f 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -21,7 +21,7 @@ if ($SYNTAXHIGHLIGHTING): endif; ?> - + #', + '##', function ($matches) { - if (array_key_exists($matches[1], Helper::$hashes)) { - return ''; } else { return $matches[0];