summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-06-23 10:36:03 +0100
committerRandy Morgan <[email protected]>2013-06-23 10:36:03 +0100
commit4954543cc0892008f580f05cfb810fb0986b107f (patch)
tree10d60edecb17725bf2c5e48bac110d2ff3d73638 /lib
parentd7ce6f10daad57fc28ca79e10d673f7bc4512673 (diff)
downloadcaxlsx-4954543cc0892008f580f05cfb810fb0986b107f.tar.gz
caxlsx-4954543cc0892008f580f05cfb810fb0986b107f.zip
escape formula for conditional formatting
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/workbook/worksheet/conditional_formatting_rule.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/conditional_formatting_rule.rb b/lib/axlsx/workbook/worksheet/conditional_formatting_rule.rb
index 9db091be..916b31c2 100644
--- a/lib/axlsx/workbook/worksheet/conditional_formatting_rule.rb
+++ b/lib/axlsx/workbook/worksheet/conditional_formatting_rule.rb
@@ -182,7 +182,7 @@ module Axlsx
# @see timePeriod
def timePeriod=(v); Axlsx::validate_time_period_type(v); @timePeriod = v end
# @see formula
- def formula=(v); [*v].each {|x| Axlsx::validate_string(x) }; @formula = v end
+ def formula=(v); [*v].each {|x| Axlsx::validate_string(x) }; @formula = [*v].map { |form| ::CGI.escapeHTML(form) } end
# @see color_scale
def color_scale=(v)