I get this jshint "Insecure" ^ "error from this javascript line:
var test = content.replace(/d=([^&]*)/, 'd=test');
Does anyone know how I can solve this problem?
Check the value of Tolerate. and [^ ...]. in / RegExp /.
true if. and [^ ...] must be allowed in RegExp literals. They correspond to more material than might be expected, allowing attackers to confuse Applications. These forms should not be used when validating in secure applications.
Source .