Skip to content

Commit 368e053

Browse files
committed
FileType should guard against attacks here
1 parent 5d6bee7 commit 368e053

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/coderay/scanners/diff.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def scan_tokens encoder, options
2121
line_kind = nil
2222
state = :initial
2323
deleted_lines_count = 0
24-
# FIXME: cache attack
2524
scanners = Hash.new do |h, lang|
2625
h[lang] = Scanners[lang].new '', :keep_tokens => true, :keep_state => true
2726
end

0 commit comments

Comments
 (0)