Skip to content

Commit 05f5a0e

Browse files
committed
no cache attacks possible, static input (CSS)
1 parent 65983f3 commit 05f5a0e

File tree

1 file changed

+0
-2
lines changed
  • lib/coderay/encoders/html

1 file changed

+0
-2
lines changed

lib/coderay/encoders/html/css.rb

-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def initialize style = :default
2121
end
2222

2323
def get_style_for_css_classes css_classes
24-
# FIXME: cache attack
2524
cl = @styles[css_classes.first]
2625
return '' unless cl
2726
style = ''
@@ -53,7 +52,6 @@ def parse stylesheet
5352
for selector in selectors.split(',')
5453
classes = selector.scan(/[-\w]+/)
5554
cl = classes.pop
56-
# FIXME: cache attack
5755
@styles[cl] ||= Hash.new
5856
@styles[cl][classes] = style.to_s.strip.delete(' ').chomp(';')
5957
end

0 commit comments

Comments
 (0)