Skip to content

Commit

Permalink
Fixed special characters presentation after decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
sleroux-keep committed Apr 12, 2015
1 parent 464ca03 commit 23ad452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wiki_controller_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def decrypt(encodedContent)
s = encodedContent.to_a.pack("H*").unpack("C*").pack("c*")
s = e.update s
decoded = s << e.final

return decoded
end

Expand Down Expand Up @@ -109,9 +108,10 @@ def decodeContent(originalText,params,tags,export)
if tags==1
decoded = '{{cipher}}'+decoded+'{{cipher}}'
elsif export==1

decoded = ''+decoded+''
else
decoded = decoded.sub("!", "&#33;")
decoded = "<notextile>"+decoded+"</notextile>"
decoded = '{{decoded_start}} '+decoded+' {{decoded_stop}}'
end
originalText = originalText.gsub(m.strip.force_encoding("UTF-8"), decoded.strip.force_encoding("UTF-8"))
Expand Down

0 comments on commit 23ad452

Please sign in to comment.