From e274e1c7b57ad0a0af3a9c5c504ac98f4b90f89a Mon Sep 17 00:00:00 2001 From: Elmar Hinz <t3elmar@gmail.com> Date: Fri, 27 May 2016 09:03:53 +0200 Subject: [PATCH] [TASK] Update the comment of stdWrap_char to include ASCII limitation The PHP char() function only works reliably with ASCII codes independent of the actual char set. See http://php.net/manual/en/function.chr.php Releases: master Resolves: #76315 Change-Id: Ia87b95239fc4678f297571704f031003f84a5759 Reviewed-on: https://review.typo3.org/48306 Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de> Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> --- .../frontend/Classes/ContentObject/ContentObjectRenderer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php index 107552f90424..2ec93fdbd0c6 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -2620,8 +2620,11 @@ class ContentObjectRenderer /** * char - * Will return a character based on its position within the current character set + * Returns a one-character string containing the character specified by ascii code. * + * Reliable results only for character codes in the integer range 0 - 127. + * + * @see http://php.net/manual/en/function.chr.php * @param string $content Input value undergoing processing in this function. * @param array $conf stdWrap properties for char. * @return string The processed input value -- GitLab