...
|
...
|
@@ -14,9 +14,9 @@ var $ = require('jquery'), |
|
|
* @return {Bool} true/false If the input have danger value
|
|
|
*/
|
|
|
function hasDangerInput(needConvert) {
|
|
|
var validationPartten = /['"<>&\|]|--/g;
|
|
|
var inputs = $('input[type!=hidden], textarea');
|
|
|
var inputsLength = inputs.length;
|
|
|
var validationPartten = /['"<>&\|]|--/g,
|
|
|
inputs = $('input[type!=hidden], textarea'),
|
|
|
inputsLength = inputs.length;
|
|
|
|
|
|
// to set if the input value should be coverted, and its default value is true;
|
|
|
var willConvert = needConvert === undefined || typeof needConvert !== 'boolean' ? true : needConvert ;
|
...
|
...
|
|