Closed (fixed)
Project:
Link Allowed Hosts
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2021 at 08:34 UTC
Updated:
15 Feb 2023 at 13:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Pooja Ganjage commentedHi,
Creating a patch for this issue.
Please review the patch.
Thanks.
Comment #3
Pooja Ganjage commentedComment #4
yannickooHey Pooja, thanks for your patch. Unfortunately that doesn't really help to solve this issue. We need
*.drupal.orgin the description text.Assigning the issue to me
Comment #5
norman.lolComment #6
neclimdulSomething like this?
Comment #7
rp7 commented#6 takes the right approach IMO. Thank you.
I improved the patch a little bit by injecting the path matcher service instead of calling it directly via
\Drupal::service().I did notice something odd though: if you configure, for example,
*.drupal.orgto be an allowed hostname the validation doesn't mark anything as invalid as soon as you include an asterisk in the hostname (eg. https://hello*.symfony.com/docs). Might be a bug with the patch matcher, but didn't dig deeper into it.Comment #8
neclimdullgtm
Comment #9
norman.lolComment #11
norman.lolThank you!! This is out. Will be released later today.