From 6ea7a6ce129ecbef6688f505d07b078022067173 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Thu, 31 May 2012 18:14:22 +0100 Subject: [PATCH] Add string check - 10142 --- type-detection/currency.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/type-detection/currency.js b/type-detection/currency.js index a49d7c0..ce32f21 100644 --- a/type-detection/currency.js +++ b/type-detection/currency.js @@ -12,6 +12,10 @@ jQuery.fn.dataTableExt.aTypes.unshift( { var sValidChars = "0123456789.-,"; var Char; + + if ( typeof sData !== 'string' ) { + return null; + } /* Check the numeric part */ for ( i=1 ; i