Why SonarQube still showing vulnerability after doing code change based on SonarQube suggestion. Some places I used same suggestion, there the vulnerability rectified. Here it is still showing vulnerability. Can someone please help us to fix this.
Why SonarQube still showing vulnerability after doing code change based on SonarQube suggestion. Some places I used same suggestion, there the vulnerability rectified. Here it is still showing vulnerability. Can someone please help us to fix this.
if (submittalFileName == null || !Regex.IsMatch(submittalFileName, "^[a-zA-Z0-9._-]+$"))
{
throw new Exception(errorMessage);
}
context.Response.AddHeader("Content-Disposition", "attachment;filename=" + submittalFileName + "");