[Pkg-mozext-commits] [firebug] 14/24: Better fix for Issue 5869 (Parts of headers wrapped in arrow brackets are treated as HTML) http://code.google.com/p/fbug/issues/detail?id=5869

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:46:32 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag firebug-1.10.4
in repository firebug.

commit a375757b55415ed3673fde49a7a79851d00cdd1d
Author: Sebastian Zartner <sebastianzartner at gmail.com>
Date:   Sun Aug 26 03:14:19 2012 +0200

    Better fix for Issue 5869 (Parts of headers wrapped in arrow brackets are treated as HTML)
    http://code.google.com/p/fbug/issues/detail?id=5869
---
 extension/content/firebug/net/netReps.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/extension/content/firebug/net/netReps.js b/extension/content/firebug/net/netReps.js
index eab7c3e..d6e9d7c 100644
--- a/extension/content/firebug/net/netReps.js
+++ b/extension/content/firebug/net/netReps.js
@@ -1622,9 +1622,8 @@ Firebug.NetMonitor.NetInfoHeaders = domplate(Firebug.Rep, new Firebug.Listener()
         else
         {
             var source = requestHeaders ? file.requestHeadersText : file.responseHeadersText;
-            source = source.replace("<", "<", "g").replace(">", ">", "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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git



More information about the Pkg-mozext-commits mailing list