summaryrefslogtreecommitdiffstats
path: root/usr/local/www/csrf/csrf-magic.js
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-10-31 08:39:12 -0400
committerjim-p <jimp@pfsense.org>2012-10-31 08:39:12 -0400
commitfcf53c1e081e218726f1d2168ecf8637e8ada41b (patch)
tree3de92a18c81ad9e9baadaf7d69c3a3a11fcd8ac8 /usr/local/www/csrf/csrf-magic.js
parent926c3b8e83b6f79c329d7350267a0426fc1a8b61 (diff)
downloadpfsense-fcf53c1e081e218726f1d2168ecf8637e8ada41b.zip
pfsense-fcf53c1e081e218726f1d2168ecf8637e8ada41b.tar.gz
Update CSRF Magic
Diffstat (limited to 'usr/local/www/csrf/csrf-magic.js')
-rw-r--r--usr/local/www/csrf/csrf-magic.js4
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;
OpenPOWER on IntegriCloud