-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] Unescape parameters for all types of injection #16295
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
I don't understand what you are trying to fix here |
Migth be clearer with a simple example: https://gist.github.com/Nicofuma/a7672bf0776efb2eaa5f
while we are expecting:
|
Bump, this is a real issue for us as it throws an error to some of our users - because they have a % in their database password - each time they clear the cache. |
I've had a few users of phpBB, experiencing the issue with the % character, try the changes in the commit and it resolved the problem for them. |
Bump again @stof could you give this PR another look please? |
👍 |
Thank you @Nicofuma. |
… injection (Nicofuma) This PR was merged into the 2.3 branch. Discussion ---------- [DependencyInjection] Unescape parameters for all types of injection | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | The parameters must be escaped when injected in the container. But they are only unescaped when the container is dumped and when these parameters are used in the service constructor. We need to unescape them every time their are injected (constructor, setter and property injection) Commits ------- 331a046 [DependencyInjection] Unescape parameters for all types of injection
The parameters must be escaped when injected in the container.
But they are only unescaped when the container is dumped and when these parameters are used in the service constructor.
We need to unescape them every time their are injected (constructor, setter and property injection)