Skip to content
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

console.OutStyle() arguments escaping #4025

Closed
11janci opened this issue Mar 31, 2019 · 0 comments
Closed

console.OutStyle() arguments escaping #4025

11janci opened this issue Mar 31, 2019 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@11janci
Copy link
Contributor

11janci commented Mar 31, 2019

Hi,
if you send an argument to console.OutStyle() that contains a '%' sign, the sign will get interpreted as a formatting directive instead of being printed out.
Example:
console.OutStyle("option", "%s", "HTTP_PROXY=http://user%40example.com:[email protected]:8080")
will print out
HTTP_PROXY=http://user%!e(MISSING)xample.com:[email protected]:8080
instead of
HTTP_PROXY=http://user%40example.com:[email protected]:8080

@tstromberg tstromberg added kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence. labels Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests

2 participants