From 015b6903c2ccdd61a800b57af0787495d8e15fa7 Mon Sep 17 00:00:00 2001 From: Rom1-B <8530352+Rom1-B@users.noreply.github.com> Date: Fri, 13 Nov 2026 10:48:18 +0100 Subject: [PATCH] feat: make plugin CSP compliant --- CHANGELOG.md | 4 ++ inc/info.class.php | 4 +- inc/model.class.php | 2 +- public/js/datainjection.js | 41 +++++++++++++++++++ setup.php | 1 + templates/clientinjection_result.html.twig | 6 +-- .../clientinjection_upload_file.html.twig | 2 +- templates/log_results.html.twig | 2 +- templates/mappings_form.html.twig | 2 +- 9 files changed, 55 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71714cd4..bb9ed47c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Added + +- Make the plugin compatible with the Content Security Policy + ### Fixed - Fix the uploaded file name being lost after the client injection upload step diff --git a/inc/info.class.php b/inc/info.class.php index 899eb3dc..7d034649 100644 --- a/inc/info.class.php +++ b/inc/info.class.php @@ -206,10 +206,10 @@ public static function showFormInfos(PluginDatainjectionModel $model) echo "
| - + {{ __('See the file', 'datainjection') }} |