Vergleich jscripts/validator.js - 1.4.3 - 1.4.8
Zeile 136 | Zeile 136 |
---|---|
{ |
{ |
extra += "&" + options.extra_body[x] + "=" + this.getValue(options.extra_body[x]); | extra += "&" + options.extra_body[x] + "=" + encodeURIComponent(this.getValue(options.extra_body[x])); |
} |
} |
extra = "&" + options.extra_body + "=" + this.getValue(options.extra_body); | extra = "&" + options.extra_body + "=" + encodeURIComponent(this.getValue(options.extra_body)); |
} |
} |
new Ajax.Request(options.url, {method:'post', postBody:"value=" + value + extra, onComplete: function(request) { this.ajaxValidateComplete(id, options, request); }.bind(this)}); | new Ajax.Request(options.url, {method:'post', postBody:"value=" + encodeURIComponent(value) + extra, onComplete: function(request) { this.ajaxValidateComplete(id, options, request); }.bind(this)}); |
|
|
value = value.replace(/^\s+|\s+$/g,""); | |
if(value == null || value.length == 0) | if(value == null || value.length == 0) |