Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better fix for Issue 5869 (Parts of headers wrapped in arrow brackets…

  • Loading branch information...
commit 2a3f4bd05962f7acf4e5558b62bd2c08109611ee 1 parent 6413859
@SebastianZ SebastianZ authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 extension/content/firebug/net/netReps.js
View
5 extension/content/firebug/net/netReps.js
@@ -1646,9 +1646,8 @@ Firebug.NetMonitor.NetInfoHeaders = domplate(Firebug.Rep, new Firebug.Listener()
else
{
var source = requestHeaders ? file.requestHeadersText : file.responseHeadersText;
- source = source.replace("<", "&lt;", "g").replace(">", "&gt;", "g");
- this.insertSource(netInfoBox, source, target.rowName);
- target.innerHTML = Locale.$STR("net.headers.pretty print");
+ this.insertSource(netInfoBox, Str.escapeForTextNode(source), target.rowName);
+ target.textContent = Locale.$STR("net.headers.pretty print");
}
target.sourceDisplayed = !target.sourceDisplayed;
Please sign in to comment.
Something went wrong with that request. Please try again.