diff options
| -rw-r--r-- | lib/axlsx/workbook/worksheet/header_footer.rb | 2 | ||||
| -rw-r--r-- | lib/axlsx/workbook/worksheet/sheet_protection.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/header_footer.rb b/lib/axlsx/workbook/worksheet/header_footer.rb index c60d6678..0b86212d 100644 --- a/lib/axlsx/workbook/worksheet/header_footer.rb +++ b/lib/axlsx/workbook/worksheet/header_footer.rb @@ -45,7 +45,7 @@ module Axlsx def to_xml_string(str = +'') serialized_tag('headerFooter', str) do serialized_element_attributes(str) do |value| - value = ::CGI.escapeHTML(value) + ::CGI.escapeHTML(value) end end end diff --git a/lib/axlsx/workbook/worksheet/sheet_protection.rb b/lib/axlsx/workbook/worksheet/sheet_protection.rb index e506f8d9..ce39b1b4 100644 --- a/lib/axlsx/workbook/worksheet/sheet_protection.rb +++ b/lib/axlsx/workbook/worksheet/sheet_protection.rb @@ -107,7 +107,7 @@ module Axlsx low_15 = char & 0x7fff high_15 = char & 0x7fff << 15 high_15 = high_15 >> 15 - char = low_15 | high_15 + low_15 | high_15 end encoded_password = 0x0000 |
