Commit e8eb9f41 authored by Stan Hu's avatar Stan Hu

Merge branch 'ajk-209221-follow-up-from-143' into 'master'

Resolve "Follow-up from "#40 - Denial of service via AsciiDoc include:: overuse""

Closes #209221

See merge request gitlab-org/gitlab!27712
parents d35bd36f 3a7a7e03
......@@ -35,7 +35,7 @@ describe Gitlab::Asciidoc::IncludeProcessor do
expect(processor.send(:include_allowed?, 'foo.adoc', reader)).to be_truthy
end
it 'allows the Nth + 1 include' do
it 'allows the Nth include' do
(max_includes - 1).times { processor.send(:read_blob, ref, 'a.adoc') }
expect(processor.send(:include_allowed?, 'foo.adoc', reader)).to be_truthy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment