-
Notifications
You must be signed in to change notification settings - Fork 203
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
EZP-30956: fix false positive view parameters detection #2899
EZP-30956: fix false positive view parameters detection #2899
Conversation
IMHO, it will be good to remove named parameters implementation starting from eZPlatform v3 |
Good addition. Could perhaps be even more rigid? View parameters are defined as |
@glye iirc in ez-legacy the view parameters were in fact more flexible than that - even though this is the way they were used in 100% of the apps and extensions that I ever came across. |
Agree, the whole implementation of named parameters will look better with proper regexp. |
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.
As discussed in #2771 I support this fix, though I don't think it is sufficient in itself, for stable future functionality. But if named parameters are indeed removed in 3.x, then it may be good enough. In any case it solves the immediate problem, while we think about dealing with the underlying cause.
NB: As a bug fix this should be PR-ed against 6.7 or 6.13, depending on whether it passes review before or after new years. Well, let's say 6.13. A new 6.7 release is unlikely now.
Hi @glye, rebased to |
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.
Thanks! I just realised you could break this with a URL like /foo)/(bar/
, but that would break before this fix as well, so not a reason not to accept the PR. For this reason and others I mentioned before I don't think the issue is resolved, but the PR is a good improvement and can IMO be merged.
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 have a weird feeling that we're reinventing a wheel here, but no other idea now, so +1
6.13 / 7.x
Replacement of #2771
TODO:
$ composer fix-cs
).