Bug 1287172 - Console netlogging: sanitize POST body data when it's a longString. r=bgrins
authorJarda Snajdr <jsnajdr@gmail.com>
Thu, 28 Jul 2016 02:49:00 -0400
changeset 349340 fc777f42356960dad649f977452d22d05e0154d9
parent 349339 7fe9c07a21e9216205371889843384bada193040
child 349341 cb8fe696526cea65b8bbdcb6f62ae0a7c4d13145
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins
bugs1287172
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1287172 - Console netlogging: sanitize POST body data when it's a longString. r=bgrins
devtools/client/webconsole/net/components/post-tab.js
--- a/devtools/client/webconsole/net/components/post-tab.js
+++ b/devtools/client/webconsole/net/components/post-tab.js
@@ -175,17 +175,17 @@ var PostTab = React.createClass({
 
     // The post body might reached the limit, so check if we are
     // dealing with a long string.
     if (typeof text == "object") {
       group = {
         key: "raw-longstring",
         name: Locale.$STR("netRequest.rawData"),
         content: DOM.div({className: "netInfoResponseContent"},
-          text.initial,
+          sanitize(text.initial),
           SizeLimit({
             actions: this.props.actions,
             data: file.request.postData,
             message: Locale.$STR("netRequest.sizeLimitMessage"),
             link: Locale.$STR("netRequest.sizeLimitMessageLink")
           })
         )
       };