diff options
Diffstat (limited to 'usr/local/www/csrf/csrf-magic.js')
-rw-r--r-- | usr/local/www/csrf/csrf-magic.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/csrf/csrf-magic.js b/usr/local/www/csrf/csrf-magic.js index 6992402..243e37e 100644 --- a/usr/local/www/csrf/csrf-magic.js +++ b/usr/local/www/csrf/csrf-magic.js @@ -108,7 +108,9 @@ CsrfMagic.end = function() { } // Sets things up for Mozilla/Opera/nice browsers -if (window.XMLHttpRequest && window.XMLHttpRequest.prototype) { +// We very specifically match against Internet Explorer, since they haven't +// implemented prototypes correctly yet. +if (window.XMLHttpRequest && window.XMLHttpRequest.prototype && '\v' != '\v') { var x = XMLHttpRequest.prototype; var c = CsrfMagic.prototype; |