Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {");
- $('input:text.sqlValidation').blur(function() {");
- var sqlInjectionRegX2 = /...Regex.../;
- var value = this.value;
- if (sqlInjectionRegX2.test(value)) {
- alert('The text you have entered may contain malicious code and can not be submitted.');
- this.value = '';
- return false;
- }
- else return true;
- });
- });
- $(this).focus();
Add Comment
Please, Sign In to add comment