Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit a375757b55415ed3673fde49a7a79851d00cdd1d 1 parent 77a3d3a
Sebastian Zartner authored August 26, 2012 janodvarko committed October 08, 2012

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  extension/content/firebug/net/netReps.js
5  extension/content/firebug/net/netReps.js
@@ -1622,9 +1622,8 @@ Firebug.NetMonitor.NetInfoHeaders = domplate(Firebug.Rep, new Firebug.Listener()
1622 1622
         else
1623 1623
         {
1624 1624
             var source = requestHeaders ? file.requestHeadersText : file.responseHeadersText;
1625  
-            source = source.replace("<", "&lt;", "g").replace(">", "&gt;", "g");
1626  
-            this.insertSource(netInfoBox, source, target.rowName);
1627  
-            target.innerHTML = Locale.$STR("net.headers.pretty print");
  1625
+            this.insertSource(netInfoBox, Str.escapeForTextNode(source), target.rowName);
  1626
+            target.textContent = Locale.$STR("net.headers.pretty print");
1628 1627
         }
1629 1628
 
1630 1629
         target.sourceDisplayed = !target.sourceDisplayed;

0 notes on commit a375757

Please sign in to comment.
Something went wrong with that request. Please try again.