Permalink
Browse files

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

  • Loading branch information...
1 parent 6413859 commit 2a3f4bd05962f7acf4e5558b62bd2c08109611ee @SebastianZ SebastianZ committed Aug 26, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 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;

0 comments on commit 2a3f4bd

Please sign in to comment.