Skip to content
Snippets Groups Projects
Commit 7b810660 authored by Misty De Meo's avatar Misty De Meo
Browse files

Audit: Regexp.escape formula names


We allow certain special regex characters in formula names, and if
those aren't escaped when interpolating them into a regex, they'll be
interpreted as special regex characters.

This can cause regex compile errors on Ruby 1.8 (for example, with
"libxml++3", which has nested match characters), and more subtle
matching bugs in general.

Refs an issue surfaced in Homebrew/homebrew#48744.

Closes Homebrew/homebrew#49005.

Signed-off-by: default avatarMisty De Meo <mistydemeo@gmail.com>
parent 09ab6789
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment