Add validation for hidden characters in catalog item definition

What does this MR do and why?

Related Issues

  1. https://gitlab.com/gitlab-org/gitlab/-/work_items/579778
  2. https://gitlab.com/gitlab-org/gitlab/-/issues/580050

Related MR

  1. https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/5569

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #579778

Merge request reports

Loading