Don't escape style_additions

Credit to Andrew Stacey
This commit is contained in:
Jacques Distler 2011-11-10 16:03:54 -06:00
parent 57d52b0d15
commit b52a66c207
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@
<%= Rails.root.join('public', 'stylesheets', 'instiki.css').read if @inline_style %> <%= Rails.root.join('public', 'stylesheets', 'instiki.css').read if @inline_style %>
<%= Rails.root.join('public', 'stylesheets', 'syntax.css').read if @inline_style %> <%= Rails.root.join('public', 'stylesheets', 'syntax.css').read if @inline_style %>
</style> </style>
<%= "<style type='text/css'>#{@style_additions}</style>" if @style_additions %> <%= "<style type='text/css'>#{@style_additions}</style>".html_safe if @style_additions %>
<style type="text/css"><!--/*--><![CDATA[/*><!--*/ <style type="text/css"><!--/*--><![CDATA[/*><!--*/
<%= @web && @web.additional_style ? @web.additional_style.html_safe : '' %> <%= @web && @web.additional_style ? @web.additional_style.html_safe : '' %>
/*]]>*/--></style> /*]]>*/--></style>

View file

@ -19,7 +19,7 @@
<%= Rails.root.join('public', 'stylesheets', 'instiki.css').read if @inline_style %> <%= Rails.root.join('public', 'stylesheets', 'instiki.css').read if @inline_style %>
</style> </style>
<%= stylesheet_link_tag 'instiki', :media => 'all' unless @inline_style %> <%= stylesheet_link_tag 'instiki', :media => 'all' unless @inline_style %>
<%= "<style type='text/css'>#{@style_additions}</style>" if @style_additions %> <%= "<style type='text/css'>#{@style_additions}</style>".html_safe if @style_additions %>
<style type="text/css"><!--/*--><![CDATA[/*><!--*/ <style type="text/css"><!--/*--><![CDATA[/*><!--*/
<%= @web ? @web.additional_style : '' %> <%= @web ? @web.additional_style : '' %>
/*]]>*/--></style> /*]]>*/--></style>