Skip to content

Make Gitlab::UntrustedRegexp freezable

Brett Walker requested to merge bw-freezable-untrusted-regex into master

What does this MR do and why?

Make Gitlab::UntrustedRegexp freezable so that it can be frozen in a constant. Since most regular expressions don't change, these can be compiled into a constant and guaranteed it won't mutate.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading