? ? Pending
Pull Request for # 28945

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
5 May 2020

Fixes #28945.

Summary of Changes

Corrects arguments.

Testing Instructions

Create a language override containing <script> tags.

Expected result

No errors and <script> tag stripped out.

Actual result

Argument 1 passed to Joomla\Filter\InputFilter::__construct() must be of the type array, null given, called in libraries\src\Filter\InputFilter.php on line 55

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 5 May 2020
avatar SharkyKZ SharkyKZ - change - 5 May 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 May 2020
Category Administration com_languages
avatar SharkyKZ SharkyKZ - change - 5 May 2020
Labels Added: ?
avatar SharkyKZ SharkyKZ - change - 5 May 2020
Rel_Number 0 28945
Relation Type Pull Request for
avatar ChristineWk ChristineWk - test_item - 5 May 2020 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 5 May 2020

I have tested this item successfully on 8db580c


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

avatar Quy
Quy - comment - 5 May 2020

I have tested this item successfully on 8db580c


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

avatar Quy Quy - test_item - 5 May 2020 - Tested successfully
avatar Quy Quy - change - 5 May 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 5 May 2020

RTC


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

avatar infograf768
infograf768 - comment - 6 May 2020

I would have merged but I don't understand the code or how to reproduce. Will leave this to @wilsonge

avatar richard67
richard67 - comment - 6 May 2020

The code is just the change from JFilterInput to namespaced InputFilter, the paremetrs 1 are replaced by the constants, and the bug fix is to use empty array instead of null for the first 2 parameters. In principle it's the same change as done here for the SafehtmlFilter: https://github.com/joomla/joomla-cms/pull/28660/files#diff-6bd82f43de99f05cfdc86d25c2e10aac

avatar richard67 richard67 - change - 6 May 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-05-06 11:42:55
Closed_By richard67
Labels Added: ?
avatar richard67 richard67 - close - 6 May 2020
avatar richard67 richard67 - merge - 6 May 2020
avatar richard67
richard67 - comment - 6 May 2020

Thanks, works as described.

Add a Comment

Login with GitHub to post a comment