Project

General

Profile

Actions

Bug #95190

closed

Padding with Fluid ViewHelper format.padding does not work correctly with multibyte strings

Added by Sybille Peters about 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2021-09-11
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

As in #95189, str_pad() is used under the hood which is not equipped to handle multibyte characters.

Example / reproduce

<f:format.padding  padLength="8" padString="*">hellö</f:format.padding>

Expected result

hellö***

Actual result

hellö**

Versions

TYPO3 10.4 (latest)
TYPO3 master (11-dev)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #95189: Padding with TypoScript strPad does not work correctly with multibyte charactersClosed2021-09-11

Actions
Related to TYPO3 Core - Bug #95673: Omitting value in PaddingViewHelper throws TypeErrorClosed2021-10-16

Actions
Actions #1

Updated by Sybille Peters about 3 years ago

  • Related to Bug #95189: Padding with TypoScript strPad does not work correctly with multibyte characters added
Actions #2

Updated by Gerrit Code Review about 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71032

Actions #3

Updated by Gerrit Code Review about 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71032

Actions #4

Updated by Gerrit Code Review about 3 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71032

Actions #5

Updated by Gerrit Code Review about 3 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71032

Actions #6

Updated by Gerrit Code Review about 3 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71032

Actions #7

Updated by Sybille Peters about 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack about 3 years ago

  • Status changed from Resolved to Closed
Actions #9

Updated by Gerrit Code Review about 3 years ago

  • Status changed from Closed to Under Review

Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71623

Actions #10

Updated by Sybille Peters about 3 years ago

  • Status changed from Under Review to Resolved
Actions #11

Updated by Chris Müller about 3 years ago

  • Related to Bug #95673: Omitting value in PaddingViewHelper throws TypeError added
Actions #12

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF