Skip to content

[FIX] #45983 UI: Fix textarea character count#11314

Merged
thibsy merged 1 commit into
ILIAS-eLearning:release_10from
srsolutionsag:fix/10/45983_fix_textarea_character_count
May 13, 2026
Merged

[FIX] #45983 UI: Fix textarea character count#11314
thibsy merged 1 commit into
ILIAS-eLearning:release_10from
srsolutionsag:fix/10/45983_fix_textarea_character_count

Conversation

@corro
Copy link
Copy Markdown
Contributor

@corro corro commented Mar 23, 2026

@dsstrassner
Copy link
Copy Markdown
Contributor

hi @thibsy could you do @corro a favor and look into this PR? 😀

Copy link
Copy Markdown
Contributor

@thibsy thibsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @corro,

What the heck was going on there =). I also think this is unnecessary. The logic looks like it was meant to guess the appropriate visual length of the string input rather than what is actually entered. But we're in a form context, so that's idiotic.

Normalising the line-breaks inside the getter and only ever using mb_strlen() is much more appropriate and respects what is actually important here: not accidentally breaking the database.. LGMT, thx a lot!

Kind regards,
@thibsy (as shepherd)

@thibsy thibsy merged commit 5078fab into ILIAS-eLearning:release_10 May 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants