Skip to content

Commit 98d5285

Browse files
authored
Merge pull request #564 from nextcloud/backport/561/stable31
[stable31] fix(exAppMapper): init missing headers_to_exclude
2 parents b88b764 + 41085b9 commit 98d5285

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)