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

Xref check arguments #714

Merged
merged 6 commits into from
Apr 27, 2021
Merged

Conversation

Kraemii
Copy link
Member

@Kraemii Kraemii commented Apr 23, 2021

What:
Fixed NASL-linter to catch Syntax error when wrong Arguments were used with script_xref
example:
script_xref(name: "URL", valie: "[https://www.wordfence.com/blog/2017/10/zero-day-vulnerability-ultimate-form-builder-lite/"
gave no error message for wrong spelling of value

Why:
Linter was not able to catch a Syntax Error, but the scanner itself does

How:
I tested the case described in the Issue so that a error message is now shown if one of the parameters is missing or misspelled. No error message is shown if everything is correct.

Checklist:

@Kraemii Kraemii requested a review from a team as a code owner April 23, 2021 15:07
@jjnicola jjnicola merged commit 1ce85b9 into greenbone:master Apr 27, 2021
@Kraemii Kraemii deleted the xref-check-arguments branch June 18, 2021 09:24
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.

None yet

2 participants