Skip to content

Commit

Permalink
fix: Convert CSP idn domains to ascii (fix #3086)
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Nov 24, 2023
1 parent bb1ff0a commit 78a2e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AppConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public function getDomainList(): array {
$this->getGSDomains()
);

return array_filter($urls);
return array_map(fn($url) => idn_to_ascii($url), array_filter($urls));
}

private function getFederationDomains(): array {
Expand Down

0 comments on commit 78a2e31

Please sign in to comment.