diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-07-20 18:12:04 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-07-20 18:12:04 +0200 |
commit | 5c23a731ca55729fc65630eca3b37a5b1a71e5b1 (patch) | |
tree | 97045ac6fa9544a1e0f168b9a02c7b53b0c4e452 /lib/coderay/encoders/html.rb | |
parent | 59ca07b0d1a1710ab729636ea00de4b638f56110 (diff) | |
download | coderay-5c23a731ca55729fc65630eca3b37a5b1a71e5b1.tar.gz |
mark possibly problematic spots with FIXME
Diffstat (limited to 'lib/coderay/encoders/html.rb')
-rw-r--r-- | lib/coderay/encoders/html.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb index 20f2409..6dd231a 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -142,6 +142,7 @@ module Encoders HTML_ESCAPE = make_html_escape_hash HTML_ESCAPE_PATTERN = /[\t"&><\0-\x8\xB-\x1F]/ + # FIXME: cache attack TOKEN_KIND_TO_INFO = Hash.new do |h, kind| h[kind] = kind.to_s.gsub(/_/, ' ').gsub(/\b\w/) { $&.capitalize } end @@ -284,6 +285,7 @@ module Encoders end def make_span_for_kinds method, hint + # FIXME: cache attack Hash.new do |h, kinds| h[kinds.is_a?(Symbol) ? kinds : kinds.dup] = begin css_class = css_class_for_kinds(kinds) |