diff --git a/components/ILIAS/DataCollection/classes/Fields/Text/class.ilDclTextRecordRepresentation.php b/components/ILIAS/DataCollection/classes/Fields/Text/class.ilDclTextRecordRepresentation.php index 8a1a82ba6289..75f27edd481b 100755 --- a/components/ILIAS/DataCollection/classes/Fields/Text/class.ilDclTextRecordRepresentation.php +++ b/components/ILIAS/DataCollection/classes/Fields/Text/class.ilDclTextRecordRepresentation.php @@ -95,7 +95,7 @@ public function getHTML(bool $link = true, array $options = []): string protected function shortenLink(string $value): string { - $value = preg_replace('/^(https?:\/\/)?(www\.)?(.)/', '', $value); + $value = preg_replace('/^(https?:\/\/)?(www\.)?/', '', $value); $half = (int) ((self::LINK_MAX_LENGTH - 4) / 2); $value = preg_replace('/^(.{' . ($half + 1) . '})(.{4,})(.{' . $half . '})$/', '\1...\3', $value);