greenbone / gsad

Greenbone Security Assistant HTTP Server - The server talking to the Greenbone Vulnerability Management daemon (gvmd).
GNU Affero General Public License v3.0
11 stars 14 forks source link

Change: Allow more characters for name and comment #99

Closed bjoernricks closed 1 year ago

bjoernricks commented 1 year ago

What:

This PR loosens the validation for name and comment fields even more then #93. The only difference between name and comment is now that comment also allows for newline characters.

The PR also adds the first unit tests for gsad to ensure the desired validation behavior for both fields.

DEVOPS-477

Why:

Still some characters have been invalid with the PCRE2 changes that have been allowed before.

How:

Unit tests!

Checklist: