Skip to content

Commit 41085b9

Browse files
andrey18106backportbot[bot]
authored andcommitted
fix(exAppMapper): init missing headers_to_exclude
Signed-off-by: Andrey Borysenko <[email protected]>
1 parent b88b764 commit 41085b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)