Skip to content

Commit

Permalink
Fixed backslash encrypting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sleroux-keep committed Apr 8, 2013
1 parent 42d46c7 commit c314928
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
author 'Sébastien Leroux'
author_url 'mailto:[email protected]'
description 'This plugin adds the ability to encrypt section of text'
version '0.0.5'
version '0.0.6'
url 'https://github.com/keeps/redmine_wikicipher'
end

Expand Down
2 changes: 2 additions & 0 deletions lib/wiki_controller_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def decrypt(encodedContent)


def encode(originalText,params,history)
originalText = originalText.gsub(/\\/) { '\\\\' }
#originalText = originalText.gsub("&", '\\\\&')
flash.delete(:warning)
if history==1
params[:decode]='1'
Expand Down

0 comments on commit c314928

Please sign in to comment.