Open
Description
In http.dart
we have few function that dumps output from the package repository server to terminal:
Lines 304 to 346 in 570cb28
It would probably be wise to apply some sanitizing to this output, similar to what @themisir did for message="..."
in www-authenticate
.
IMO, we should break message sanitizing logic into a utility function and use when printing output from a server.
In particular I think it's unreasonable to allow servers to print ANSI escape codes, and such... maybe a few newlines, but not too many. And not too long messages.
I haven't check if there is anything weird you can do here, I'm just imagining there could be...