RTC bug PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar AlterBrains
AlterBrains
26 Apr 2024

Summary of Changes

InputFilter::clean($string, 'string') fails when decoding the entities with HEX numbers

Testing Instructions

Execute the code:

$filter = \Joomla\CMS\Filter\InputFilter::getInstance();
var_dump($filter->clean('ÿ', 'string'));
die;

Actual result BEFORE applying this Pull Request

See error chr(): Argument #1 ($codepoint) must be of type int, string given

Expected result AFTER applying this Pull Request

No errors.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar AlterBrains AlterBrains - open - 26 Apr 2024
avatar AlterBrains AlterBrains - change - 26 Apr 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Apr 2024
Category Libraries
avatar AlterBrains AlterBrains - change - 26 Apr 2024
Labels Added: PR-4.4-dev
avatar exlemor exlemor - test_item - 26 Apr 2024 - Tested successfully
avatar exlemor
exlemor - comment - 26 Apr 2024

I have tested this item ✅ successfully on fee33cb

Hi AlterBrains, I have tested this successfully.

It yields the answer of: string(2) "ÿ" so if that is expected - perfect.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43377.

avatar richard67 richard67 - alter_testresult - 5 May 2024 - exlemor: Tested successfully
avatar richard67
richard67 - comment - 5 May 2024

I've restored @exlemor 's test result in the issue tracker so it's properly counted again. The commits which have invalidated the count were just clean branch updates.

It yields the answer of: string(2) "ÿ" so if that is expected - perfect.

@exlemor Yes, that character fits to the Unicode character given as hexadecimal number. See e.g. https://www.w3schools.com/charsets/tryit.asp?deci=255&ent=yuml .

avatar richard67 richard67 - test_item - 5 May 2024 - Tested successfully
avatar richard67
richard67 - comment - 5 May 2024

I have tested this item ✅ successfully on 3d3e148

Works as described. In addition, I've tested that decimal values like 'ÿ' and entity names like 'ÿ' continue to work as before.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43377.

avatar richard67 richard67 - change - 5 May 2024
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 5 May 2024

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43377.

avatar MacJoom MacJoom - change - 8 May 2024
Labels Added: RTC bug
avatar MacJoom MacJoom - change - 8 May 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-05-08 16:26:56
Closed_By MacJoom
avatar MacJoom MacJoom - close - 8 May 2024
avatar MacJoom MacJoom - merge - 8 May 2024
avatar MacJoom
MacJoom - comment - 8 May 2024

Thank you!

Add a Comment

Login with GitHub to post a comment