Skip to content

Commit 147592c

Browse files
committed
Restore trusted urls set to null
1 parent 532d9fb commit 147592c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

docs/simplesamlphp-changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Released TBD
1212
* Added a missing use-statement that would cause a 'class not found' exception.
1313
* Improved Luxembourgish (LB) translations (#2129, #2140)
1414
* Fix regression introduced in v2.2.2 regarding autofilling usernames.
15+
* Restore the possibility to set `trusted.url.domains` to null
1516

1617
`adfs`
1718

src/SimpleSAML/Utils/HTTP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public function checkURLAllowed(string $url, array $trustedSites = null): string
375375

376376
// get the white list of domains
377377
if ($trustedSites === null) {
378-
$trustedSites = Configuration::getInstance()->getOptionalArray('trusted.url.domains', []);
378+
$trustedSites = Configuration::getInstance()->getOptionalArray('trusted.url.domains', null);
379379
}
380380

381381
// validates the URL's host is among those allowed

0 commit comments

Comments
 (0)