[core] fix new bridge PRs not generating html preview artifacts (#3583)

* [core] replace everything except bridge name to get a valid whitelist.txt

* [core] do not use hard code repository name to improve working with forks

* [core] trim bridge names from whitelist.txt to reduce chance of failure
This commit is contained in:
User123698745 2023-07-30 23:26:59 +02:00 committed by GitHub
parent 3a57fc800b
commit 93eecdf79f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -113,7 +113,7 @@ final class Configuration
if ($enabledBridges === '*') {
self::setConfig('system', 'enabled_bridges', ['*']);
} else {
self::setConfig('system', 'enabled_bridges', array_filter(explode("\n", $enabledBridges)));
self::setConfig('system', 'enabled_bridges', array_filter(array_map('trim', explode("\n", $enabledBridges))));
}
}