-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Fix paths with % in it (like urlencoded) #17307
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
scaytrase
commented
Jan 8, 2016
Q | A |
---|---|
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | Travis passed |
Fixed tickets | #17306 |
License | MIT |
Doc PR | none |
This is a BC break, you need to manually escape the % char |
@dosten How should this be a BC break? Kernel parameter |
i.e if we have path |
The better fix is to only apply the |
@Tobion Yes, and this would have more clear logic with sprifntf. Does this one looks better? |
@@ -562,13 +562,13 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder | |||
$dirs[] = dirname($r->getFileName()).'/../../Resources/translations'; | |||
} | |||
} | |||
$overridePath = $container->getParameter('kernel.root_dir').'/Resources/%s/translations'; | |||
$rootDir = $container->getParameter('kernel.root_dir'); |
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.
line 575 can reuse $rootDir
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.
@Tobion updated
👍 Status: Reviewed |
Thank you @scaytrase. |
… (scaytrase) This PR was merged into the 2.3 branch. Discussion ---------- [FrameworkBundle] Fix paths with % in it (like urlencoded) | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | Travis passed | Fixed tickets | #17306 | License | MIT | Doc PR | none Commits ------- de7b4d7 Fix #17306 Paths with % in it are note allowed (like urlencoded)