summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-07-21 20:18:49 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-07-21 20:18:49 +0200
commit368e053880819edc74fdcef38f38b5fd4806a3f4 (patch)
treee49ffeebfac158726c17b5ef4fbd074c477353e0
parent5d6bee7f5caced1383e6aac427fb356a4788794b (diff)
downloadcoderay-368e053880819edc74fdcef38f38b5fd4806a3f4.tar.gz
FileType should guard against attacks here
-rw-r--r--lib/coderay/scanners/diff.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/coderay/scanners/diff.rb b/lib/coderay/scanners/diff.rb
index 836fa41..fd1aed6 100644
--- a/lib/coderay/scanners/diff.rb
+++ b/lib/coderay/scanners/diff.rb
@@ -21,7 +21,6 @@ module Scanners
line_kind = nil
state = :initial
deleted_lines_count = 0
- # FIXME: cache attack
scanners = Hash.new do |h, lang|
h[lang] = Scanners[lang].new '', :keep_tokens => true, :keep_state => true
end