Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit a375757b55415ed3673fde49a7a79851d00cdd1d 1 parent 77a3d3a
Sebastian Zartner SebastianZ authored janodvarko committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 extension/content/firebug/net/netReps.js
5 extension/content/firebug/net/netReps.js
View
@@ -1622,9 +1622,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.