Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
stof commentedOct 20, 2015
I don't understand what you are trying to fix here |
Nicofuma commentedOct 20, 2015
Migth be clearer with a simple example:https://gist.github.com/Nicofuma/a7672bf0776efb2eaa5f while we are expecting: |
Nicofuma commentedNov 2, 2015
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. |
Oyabun1 commentedNov 2, 2015
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. |
Nicofuma commentedNov 10, 2015
Bump again @stof could you give this PR another look please? |
Nicofuma commentedNov 16, 2015
nicolas-grekas commentedNov 19, 2015
👍 |
fabpot commentedNov 19, 2015
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)