-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.4] Check pagination parameters from request, another try #44023
Conversation
This PR re-introduces the issue that was fixed in the security release. |
I updated the PR, it now takes only allowed parameters. |
Testing now, after getting more information, it seems to be working fine for me. I will do more tests to confirm this PR. Thank you. |
I have tested this item ✅ successfully on 097ef2e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44023. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I have tested this item ✅ successfully on 399ab15 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44023. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44023. |
Thank you! |
Summary of Changes
Existing approach still have a problem, it is always forcing the parameters defined in
$defaultUrlParams
, and make it impossible to remove.I suggest a different approach, take the allowed parameters from the router, and filtering them before adding. Also this now happen in the pagination constructor, which allows for developers to unset unneeded params.
Testing Instructions
Code review. Test with your component.
Or, add following code, somewhere here
joomla-cms/templates/cassiopeia/index.php
Line 202 in 67cd90e
Then open any page with
?tmpl=index
in URL, and check pagination links.Actual result BEFORE applying this Pull Request
Somehow works.
Pagination links contain
?tmpl=index
.Expected result AFTER applying this Pull Request
Works but better.
Pagination links without
?tmpl=index
.Link to documentations
Please select: