Our settings.php file includes other files and one of these files contains the main host and trusted patterns, so the token method does not find it.
However, we can't really use the include method because our settings file contain a lot of logic and it makes the check crash.

So it would be useful to be able to run the token method on another file.

Comments

prudloff created an issue. See original summary.

prudloff’s picture

Status: Active » Needs review
StatusFileSize
new1.56 KB

The attached patch adds a new filename setting that allows scanning another file in the same folder.

smustgrave’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#3008957: Refactor trusted hosts check

Closing as duplicate of https://www.drupal.org/project/security_review/issues/3008957

If you feel they are different please reopen explaining how they are different.