From 37140581a5fb64bc30e98cd134f08492515d5c8d Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 9 Dec 2024 17:04:24 +0100 Subject: [PATCH] Add renderer for emails --- .../renderer/EmailColumnRenderer.class.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 wcfsetup/install/files/lib/system/gridView/renderer/EmailColumnRenderer.class.php diff --git a/wcfsetup/install/files/lib/system/gridView/renderer/EmailColumnRenderer.class.php b/wcfsetup/install/files/lib/system/gridView/renderer/EmailColumnRenderer.class.php new file mode 100644 index 0000000000..b258d336c7 --- /dev/null +++ b/wcfsetup/install/files/lib/system/gridView/renderer/EmailColumnRenderer.class.php @@ -0,0 +1,22 @@ + + * @since 6.2 + */ +class EmailColumnRenderer extends AbstractColumnRenderer implements ILinkColumnRenderer +{ + #[\Override] + public function render(mixed $value, mixed $context = null): string + { + return \sprintf('%s', StringUtil::encodeHTML($value), StringUtil::encodeHTML($value)); + } +} -- 2.20.1