Files
docker-cli/components/engine/integration-cli
Yong Tang e6c766802a Disable HTML escaping for JSON strings in docker inspect
This fix tries to address the issue raised in 27021 where
HTML strings like (`&, >, <, etc`) in environmental variables
are escaped for JSON output for `docker inspect`. For example,
`TEST_ENV="soanni&rtr"` has been escaped to `TEST_ENV="soanni\u0026rtr"`

This fix disabled HTML escaping with `SetEscapeHTML`, which is available
since golang 1.7.0. This changes will be applied to all JSON output
that utilize `httputils.WriteJSON`.

An integration test has been added to cover the changes.

This fix fixes 27021.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 0fa20ad13b0b5c6d1bf8a8285717c07697d079ba
Component: engine
2016-09-29 18:16:36 -07:00
..
2016-09-07 17:30:35 -04:00
2016-06-02 17:17:22 +08:00
2016-08-09 09:42:23 +08:00
2016-09-22 19:31:39 +00:00
2016-09-23 12:13:29 -07:00
2016-09-23 12:13:29 -07:00
2016-09-07 17:30:35 -04:00
2016-09-02 19:07:54 -07:00