Skip to content

Commit

Permalink
Merge pull request #16612 from jrafanie/prevent_fine_infinite_loop
Browse files Browse the repository at this point in the history
[FINE] Limit number of '::' when parsing model
(cherry picked from commit 90cb93e)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1549241
  • Loading branch information
simaishi committed Feb 26, 2018
1 parent 46b761c commit 7aee01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/miq_expression/tag.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class MiqExpression::Tag
REGEX = /
(?<model_name>([[:alnum:]]*(::)?)+)
(?<model_name>([[:alnum:]]*(::)?){4})
\.(?<associations>([a-z_]+\.)*)
(?<namespace>\bmanaged|user_tag\b)
-(?<column>[a-z]+[_[:alnum:]]+)
Expand Down

0 comments on commit 7aee01a

Please sign in to comment.