Skip to content

Commit 9c69fa2

Browse files
committed
fix(exAppMapper): init missing headers_to_exclude
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
1 parent b7a50db commit 9c69fa2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Db/ExAppMapper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ public function registerExAppRoutes(ExApp $exApp, array $routes): int {
200200
if (isset($route['bruteforce_protection']) && is_string($route['bruteforce_protection'])) {
201201
$route['bruteforce_protection'] = json_decode($route['bruteforce_protection'], false);
202202
}
203+
if (!isset($route['headers_to_exclude'])) {
204+
$route['headers_to_exclude'] = [];
205+
}
203206
$qb->insert('ex_apps_routes')
204207
->values([
205208
'appid' => $qb->createNamedParameter($exApp->getAppid()),

0 commit comments

Comments
 (0)