Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

fix: disable HTMLPurifier definition cache in event locations migration

Dave Earley0a411d3a3730
diff --git a/backend/database/migrations/2026_05_22_000002_link_events_and_occurrences_to_event_locations.php b/backend/database/migrations/2026_05_22_000002_link_events_and_occurrences_to_event_locations.php
index f2e09e1a7..d2d299463 100644
--- a/backend/database/migrations/2026_05_22_000002_link_events_and_occurrences_to_event_locations.php
+++ b/backend/database/migrations/2026_05_22_000002_link_events_and_occurrences_to_event_locations.php
@@ -217,6 +217,12 @@ return new class extends Migration
private function purifier(): HTMLPurifier
{
- return $this->purifier ??= new HTMLPurifier(HTMLPurifier_Config::createDefault());
+ if ($this->purifier === null) {
+ $config = HTMLPurifier_Config::createDefault();
+ $config->set('Cache.DefinitionImpl', null);
+ $this->purifier = new HTMLPurifier($config);
+ }
+
+ return $this->purifier;
}
};