From 10d8edb5fd50c5927cbbd7ab27b65bb3b9361067 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Fri, 2 Sep 2011 09:26:46 +0000 Subject: [PATCH] prevent printing console.log messages if the hooked browser is IE git-svn-id: https://beef.googlecode.com/svn/trunk@1250 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- core/main/client/net/xssrays.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/main/client/net/xssrays.js b/core/main/client/net/xssrays.js index 59a4910f2..3ce98a720 100644 --- a/core/main/client/net/xssrays.js +++ b/core/main/client/net/xssrays.js @@ -98,9 +98,9 @@ beef.net.xssrays = { return result; }, - // util function. Print string to the console only if the debug flag is on. + // util function. Print string to the console only if the debug flag is on and the browser is not IE. printDebug:function(log) { - if (this.debug) { + if (this.debug && !beef.browser.isIE()) { console.log("[XssRays] " + log); } },