Skip to content

Commit badaf4a

Browse files
authored
Merge pull request #1018 from cakephp/feature/internal-tld
Add "internal" to the list of safe TLDs
2 parents 58aa308 + 5b2130f commit badaf4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ToolbarService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ protected function isSuspiciouslyProduction(): bool
165165

166166
// Check if the TLD is in the list of safe TLDs.
167167
$tld = end($parts);
168-
$safeTlds = ['localhost', 'invalid', 'test', 'example', 'local'];
168+
$safeTlds = ['localhost', 'invalid', 'test', 'example', 'local', 'internal'];
169169
$safeTlds = array_merge($safeTlds, (array)$this->getConfig('safeTld'));
170170

171171
if (in_array($tld, $safeTlds, true)) {

0 commit comments

Comments
 (0)