提交 ee4a1462 编写于 作者: R Rafael França

Merge pull request #23948 from ctm/remove_pathological_regexp

Removes potentially quadratic Regexp from ActiveRecord::LogSubscriber…
......@@ -67,7 +67,7 @@ def sql_color(sql)
case sql
when /\A\s*rollback/mi
RED
when /\s*.*?select .*for update/mi, /\A\s*lock/mi
when /select .*for update/mi, /\A\s*lock/mi
WHITE
when /\A\s*select/i
BLUE
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册