Guest User

Untitled

a guest
Apr 25th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. $(document).ready(function() {");
  2. $('input:text.sqlValidation').blur(function() {");
  3. var sqlInjectionRegX2 = /...Regex.../;
  4. var value = this.value;
  5. if (sqlInjectionRegX2.test(value)) {
  6. alert('The text you have entered may contain malicious code and can not be submitted.');
  7. this.value = '';
  8. return false;
  9. }
  10. else return true;
  11. });
  12. });
  13.  
  14. $(this).focus();
Add Comment
Please, Sign In to add comment