-
-
Couldn't load subscription status.
- Fork 3.7k
Backport FW filter package changes: allow arrays process by clean() #8681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@mbabker Here is the backport of the recent framework changes for the input filter clean() method and test. |
|
@RickR2H would you be willing to test this? |
|
@photodude I'll test this if I can. What is the best procedure to test as I don't have in depth knowledge of the code as I'm only a frontend developer ;) |
|
I would just do a general check that the various existing forms in the CMS function as expected. |
|
@brianteeman Unlike @wilsonge 's PR #8734 for updating to the current the framework package. This filter class is used in the CMS core. |
|
Not sure why that comment is addressed at me. I have no say on what gets merged or when |
|
I only Pinged you since You had asked in #8734 if that PR "need to be merged before 3.5" |
|
Merge this: photodude#1 Get some testers in here. I've gotta focus on the sql upgrade. But added a 3.5 blocker tag as even though the FW filter package isn't being used by core - let's not run into PHP 7 issues because 3rd parties are using the framework filter package :) |
|
@RickR2H would you still be willing to test this? |
|
I received an error after applying this patch. |
|
@Stevec4 Thanks for testing, I didn't create the part of this PR for the composer changes So I'll have to dig into what's going on. I'm not sure, but I think this patch might need to be applied against Stagging, before the composer changes were added it would have been a test against 3.4.8 or possibly 3.5B2. I'll see if I can rebase this soon since there are some new merge conflicts. |
Backports Framework changes: Allow arrays of numbers to be processed by clean() joomla-framework/filter#13 * Adds basic first level processing of array's of numbers * Fixes Array to String conversion notices in clean() for number cases * Updates pcre patterns for numbers * Fixes floats case to properly handle exponent type floats rather than just decimal floats * Adds new general cases to test and verify the array of numbers functionality * Code style: fixes missing comma at end of array lists.
Adds new and missing tests from the framework. joomla-framework/filter#13
Backports additional changes from Framework/filter 1.2.0 Fix the line breaks in checkAttribute() so it's properly on the boolean
Backports changes from framework/filter 1.2.0
Replaces deprecated JString with StringHelper
|
@Stevec4 I've rebased to staging and fixed the Merge conflicts. I think the issue you reported should be fixed. I tested against Staging, So I'm not sure about success for testing from J3.5B2 and then applying the patch. |
|
@photodude I have re applied the patch to both a 348 install and a 3.50b2 install with no issues. |
|
I have tested this item ✅ successfully on 23ca41a This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8681. |
|
@Stevec4 thanks for the test. Would you please go to the issue tracker and mark it as a successful test. |
|
Manually added the test from @Stevec4 Marking RTC - thanks everyone This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8681. |
Backport FW filter package changes: allow arrays process by clean()
|
Merged -thanks all! |
|
Thanks Everyone. I appreciate all the work and testing. |
| 'style', | ||
| 'title', | ||
| 'xml' | ||
| 'xml', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did a comma got added here and just below ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally prefer it when you have multiple array elements. I don't think our code style policy defines either way...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a Joomla Coding styles option.
"When splitting array definitions onto several lines, the last value may also have a trailing comma."
I follow that the last value should have a trailing comma
Updates the CMS Framework package to framework/filter 1.2.0 with Composer
Backports Framework changes: Allow arrays of numbers to be processed by clean() and associated tests.
joomla-framework/filter#13
Backports additional changes from framework/filter 1.2.0
*Fixes PHP7 issues
Testing
https://docs.joomla.org/Testing_Joomla!_patches
Do a general check that the various existing forms in the CMS function as expected.