]> BookStack Code Mirror - bookstack/commit
CSP: Updated handling of drawio URL to consider port
authorDan Brown <redacted>
Sun, 14 Jul 2024 15:06:18 +0000 (16:06 +0100)
committerDan Brown <redacted>
Sun, 14 Jul 2024 15:06:18 +0000 (16:06 +0100)
commit897bb338f956245e2c86bda6cd5c6a67711f9448
tree0e049e3fbabf59bbc42fcf9248589ba91e348125
parent767699a0664c13fea1293654578f571ec4a08fa3
CSP: Updated handling of drawio URL to consider port

Previously if a custom port was used in the DRAWIO option it would not
be considered in the CSP handling, which would block loading.

Added test to cover.
For #5107
app/Util/CspService.php
tests/SecurityHeaderTest.php