diff --git a/lib/Db/ExAppMapper.php b/lib/Db/ExAppMapper.php index 2bd31246..b4fb36d6 100644 --- a/lib/Db/ExAppMapper.php +++ b/lib/Db/ExAppMapper.php @@ -200,6 +200,9 @@ public function registerExAppRoutes(ExApp $exApp, array $routes): int { if (isset($route['bruteforce_protection']) && is_string($route['bruteforce_protection'])) { $route['bruteforce_protection'] = json_decode($route['bruteforce_protection'], false); } + if (!isset($route['headers_to_exclude'])) { + $route['headers_to_exclude'] = []; + } $qb->insert('ex_apps_routes') ->values([ 'appid' => $qb->createNamedParameter($exApp->getAppid()),