From bf46aeb1f2db084bffc07e78c8525381a21f2145 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 16 Jul 2013 22:51:19 -0700 Subject: [PATCH] Properly do IE match (I can't believe this was broken). Signed-off-by: Edward Z. Yang --- csrf-magic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csrf-magic.js b/csrf-magic.js index 243e37e..d776b6a 100644 --- a/csrf-magic.js +++ b/csrf-magic.js @@ -110,7 +110,7 @@ CsrfMagic.end = function() { // Sets things up for Mozilla/Opera/nice browsers // We very specifically match against Internet Explorer, since they haven't // implemented prototypes correctly yet. -if (window.XMLHttpRequest && window.XMLHttpRequest.prototype && '\v' != '\v') { +if (window.XMLHttpRequest && window.XMLHttpRequest.prototype && '\v' != 'v') { var x = XMLHttpRequest.prototype; var c = CsrfMagic.prototype; -- 2.11.4.GIT