-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Console] Escape command usage #24455
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
|
What about markdown formatter? should we use htmlspecialchars there? |
|
@ro0NL I'm not sure we should change anything on the Markdown usage for now, I don't see any issue with such arguments. |
|
AFAIK markdown will render it as HTML tags; If we already quote using backticks we're good :) edit: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Console/Tests/Fixtures/command_2.md looks good already, i think we're fine :) |
ro0NL
left a comment
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 think we should patch 2.7 instead.
5b562d5 to
ef650dd
Compare
|
ping @nicolas-grekas |
|
I also think this should be merged as a bugfix in 2.7. @sroze Can you retarget and rebase? |
ef650dd to
2141056
Compare
|
Good point. @chalasr rebased and changed target 👍 |
|
Thank you @sroze. |
This PR was merged into the 2.7 branch. Discussion ---------- [Console] Escape command usage | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24225 | License | MIT | Doc PR | ø Escape the console usage to prevent arguments named `info` or similar to be formatted. Commits ------- 2141056 Escape command usage when displaying it in the text descriptor
Escape the console usage to prevent arguments named
infoor similar to be formatted.