Skip to content

Commit

Permalink
Fixed image related issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Leroux authored and Sebastien Leroux committed Feb 26, 2013
1 parent c021997 commit 5f20654
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/wiki_controller_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ def decodeContent(originalText,params,tags,export)
matches.each do |m|
tagContent = m.gsub('{{coded_start}}','').gsub('{{coded_stop}}','').strip
decoded = decrypt(tagContent)

if tags==1
decoded = '{{cipher}}'+decoded+'{{cipher}}'
elsif export==1
decoded = ''+decoded+''
else
decoded = decoded.sub("!", "!")
decoded = '{{decoded_start}} '+decoded+' {{decoded_stop}}'
end
originalText = originalText.gsub(m.strip, decoded.strip)
Expand Down Expand Up @@ -156,7 +158,7 @@ def show_with_decryption
return
end
end
@content.text = @content.text.sub("!", "!")
#@content.text = @content.text.sub("!", "!")
@editable = editable?
@sections_editable = @editable && User.current.allowed_to?(:edit_wiki_pages, @page.project) &&
@content.current_version? &&
Expand Down

0 comments on commit 5f20654

Please sign in to comment.