Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cat search #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add cat search #5

wants to merge 1 commit into from

Conversation

tim-the-junior
Copy link
Collaborator

No description provided.


public bool HasCat(string catName)
{
var process = System.Diagnostics.Process.Start("search.cmd", catName);

Check notice

Code scanning / SonarCloud

OS commands should not be vulnerable to argument injection attacks

<!--SONAR_ISSUE_KEY:AYojvWGRd0Z-XXWDsmQC-->Change this code to not construct OS command arguments from user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=andreiepure_eShopOnWeb&issues=AYojvWGRd0Z-XXWDsmQC&open=AYojvWGRd0Z-XXWDsmQC&pullRequest=3">SonarCloud</a></p>
@sonarcloud

This comment was marked as outdated.

Copy link

sonarcloud bot commented May 8, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
34.8% Coverage on New Code (required ≥ 80%)
B Security Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint


public bool HasCat(string catName)
{
var process = System.Diagnostics.Process.Start("search.cmd", catName);

Check notice

Code scanning / SonarCloud

OS commands should not be vulnerable to argument injection attacks Low

Change this code to not construct OS command arguments from user-controlled data. See more on SonarCloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant