]> BookStack Code Mirror - bookstack/commit
SSR: Updated allow list handling & covered webhook usage
authorDan Brown <redacted>
Sat, 26 Aug 2023 19:13:37 +0000 (20:13 +0100)
committerDan Brown <redacted>
Sat, 26 Aug 2023 19:13:37 +0000 (20:13 +0100)
commit903895814ace77cd30c22b57de16f9e22daf21e4
tree3e1a6b85b0600a975a6825532791f064b9edbc81
parentc324ad928dbdd54ce5b09eb0dabe60ef9de1ea38
SSR: Updated allow list handling & covered webhook usage

- Covered webhook SSR allow list useage via test.
- Updated allow list handling to use trailing slash, or hash, or end of
  line as late anchor for better handling for hosts (prevent .co.uk
passing for .co domain host)
app/Util/SsrUrlValidator.php
tests/Actions/WebhookCallTest.php
tests/Unit/SsrUrlValidatorTest.php