Skip to content

Commit 758266b

Browse files
committed
Fix name normalization
1 parent a6fa2bf commit 758266b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Rfc1035StubDnsResolver.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function resolve(string $name, ?int $typeRestriction = null, ?Cancellatio
154154
foreach ($searchList as $searchIndex => $search) {
155155
for ($redirects = 0; $redirects < 5; $redirects++) {
156156
$searchName = match ($search) {
157-
'.' => \rtrim($name, '.') . '.',
157+
'.' => $name,
158158
default => $name . '.' . $search,
159159
};
160160

0 commit comments

Comments
 (0)