summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2017-12-04 11:27:03 +0100
committerKai Koehne <kai.koehne@qt.io>2017-12-18 09:57:35 +0000
commitb9a12f07441d345797787f7142a240a386e513b2 (patch)
treefb217765849eb5cc3dfe619694c9f8ff7232a1ca /src/3rdparty
parentd4b3d9457bbe090c4ecc0d5a7d70e7bb08b22b90 (diff)
Hardcode default argument for mimetype in ::setContent
The docs were wrong in that the default is actually text/plain with US-ASCII encoding (see e.g. data_url_unittest.cc). Anyhow, saying it might change in the future does not help anyone, and is actually a potential security risk - see e.g. the discussion about 'magic' in QTextEdit::setText(). Because of this, it's unlikely that Chromium ever changes the default. Anyhow, we can as well hardcode the default, and document it then. Change-Id: I949111598a30fa69d152d3e98d76e9d96df92d54 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/3rdparty')
0 files changed, 0 insertions, 0 deletions