Skip to content

Commit 2ed0481

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

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
@@ -195,6 +195,9 @@ public function registerExAppRoutes(ExApp $exApp, array $routes): int {
195195
if (isset($route['bruteforce_protection']) && is_string($route['bruteforce_protection'])) {
196196
$route['bruteforce_protection'] = json_decode($route['bruteforce_protection'], false);
197197
}
198+
if (!isset($route['headers_to_exclude'])) {
199+
$route['headers_to_exclude'] = [];
200+
}
198201
$qb->insert('ex_apps_routes')
199202
->values([
200203
'appid' => $qb->createNamedParameter($exApp->getAppid()),

0 commit comments

Comments
 (0)