Mercurial > hg > soundsoftware-site
changeset 1312:2abc48cc545e redmine-2.2-integration
Escaping HTML in a few other places.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 18 Jun 2013 14:30:52 +0100 |
parents | 3783c5b32eb3 |
children | 17f075c7fd41 |
files | plugins/redmine_bibliography/app/helpers/publications_helper.rb plugins/redmine_bibliography/app/models/publication.rb |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/helpers/publications_helper.rb Mon Jun 17 16:14:45 2013 +0100 +++ b/plugins/redmine_bibliography/app/helpers/publications_helper.rb Tue Jun 18 14:30:52 2013 +0100 @@ -123,7 +123,7 @@ def print_ieee_format(publication) Rails.cache.fetch("publication-#{publication.id}-ieee") do - publication.print_entry(:ieee) + publication.print_entry(:ieee).html_safe end end
--- a/plugins/redmine_bibliography/app/models/publication.rb Mon Jun 17 16:14:45 2013 +0100 +++ b/plugins/redmine_bibliography/app/models/publication.rb Tue Jun 18 14:30:52 2013 +0100 @@ -101,11 +101,10 @@ end if style == :ieee - CiteProc.process bib.to_citeproc, :style => :ieee, :format => :html + CiteProc.process(bib.to_citeproc, :style => :ieee, :format => :html) else bibtex = bib.to_s :include => :meta_content bibtex.strip! - logger.error { bibtex } end end end