diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90d53ef00..905a6c200 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,8 @@ name: CI on: [push, pull_request, workflow_dispatch] +permissions: {} + jobs: migrations: if: github.event_name != 'push' || github.event.repository.fork == true || github.ref == 'refs/heads/main' diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index d82cae171..edb234a97 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -2,6 +2,8 @@ name: Check collectstatic on: [push, pull_request, workflow_dispatch] +permissions: {} + jobs: collectstatic: if: github.event_name != 'push' || github.event.repository.fork == true || github.ref == 'refs/heads/main' diff --git a/apps/events/templates/events/event_detail.html b/apps/events/templates/events/event_detail.html index 80773bd6b..35dcdd55a 100644 --- a/apps/events/templates/events/event_detail.html +++ b/apps/events/templates/events/event_detail.html @@ -184,7 +184,10 @@

More events in b.getAttribute('data-benefit-id') == benefitId)[0]; hiddenInput.checked = !hiddenInput.checked; - clickedImg.src = newSrc; + if (isSafeImageSrc(newSrc)) { + clickedImg.src = newSrc; + } // Check if there are any type of customization. If so, display custom-fee label. let pkgBenefits = Array(...document.getElementById(`package_benefits_${packageId}`).children).map(div => div.textContent).sort();