We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52e85cd commit 48a0c3cCopy full SHA for 48a0c3c
core-bundle/src/Resources/contao/dca/tl_page.php
@@ -1289,9 +1289,9 @@ public function checkDns($varValue)
1289
1290
// The first part will match IPv6 addresses in square brackets. The
1291
// second part will match domain names and IPv4 addresses.
1292
- preg_match('#(?:^(?:[a-z]+]://)?(\[[0-9a-f:]+]))|(?:^(?:[a-z]+://)?([\pN\pL._-]*))#ui', $varValue, $matches);
+ preg_match('#^(?:[a-z]+://)?(\[[0-9a-f:]+]|[\pN\pL._-]*)#ui', $varValue, $matches);
1293
1294
- return Idna::encode($matches[2] ?? $matches[1]);
+ return Idna::encode($matches[1]);
1295
}
1296
1297
/**
0 commit comments