Skip to content

Fix TODO: Add validation for email, ip and uris#298

Open
inteon wants to merge 1 commit intoVenafi:masterfrom
inteon:improve_validation
Open

Fix TODO: Add validation for email, ip and uris#298
inteon wants to merge 1 commit intoVenafi:masterfrom
inteon:improve_validation

Conversation

@inteon
Copy link
Contributor

@inteon inteon commented Jul 5, 2023

This PR fixes a TODO in the VCert code.

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>

if !isComponentValid(parsedCSR.Subject.Country, p.SubjectCRegexes, false) {
return fmt.Errorf(countryError, parsedCSR.Subject.Country, p.SubjectCRegexes)
if !isComponentValid(parsedCSR.Subject.Province, p.SubjectSTRegexes, false) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the order, so it matches the ordering that is used below. This should not have any noteworthy effects on the behavior of this function.

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