<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -465,8 +465,7 @@ class RedCloth &lt; String
             style &lt;&lt; &quot;vertical-align:#{ v_align( $&amp; ) };&quot; if text =~ A_VLGN
         end
 
-        style &lt;&lt; &quot;#{ htmlesc $1 };&quot; if not filter_styles and
-            text.sub!( /\{([^}]*)\}/, '' )
+        style &lt;&lt; &quot;#{ htmlesc $1 };&quot; if text.sub!( /\{([^}]*)\}/, '' ) &amp;&amp; !filter_styles
 
         lang = $1 if
             text.sub!( /\[([^)]+?)\]/, '' )</diff>
      <filename>lib/redcloth.rb</filename>
    </modified>
    <modified>
      <diff>@@ -32,6 +32,7 @@ module Redmine
         super
         self.hard_breaks=true
         self.no_span_caps=true
+        self.filter_styles=true
       end
       
       def to_html(*rules, &amp;block)</diff>
      <filename>lib/redmine/wiki_formatting.rb</filename>
    </modified>
    <modified>
      <diff>@@ -49,7 +49,8 @@ class ApplicationHelperTest &lt; HelperTestCase
       '!http://foo.bar/image.jpg!' =&gt; '&lt;img src=&quot;http://foo.bar/image.jpg&quot; alt=&quot;&quot; /&gt;',
       'floating !&gt;http://foo.bar/image.jpg!' =&gt; 'floating &lt;div style=&quot;float:right&quot;&gt;&lt;img src=&quot;http://foo.bar/image.jpg&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;',
       'with class !(some-class)http://foo.bar/image.jpg!' =&gt; 'with class &lt;img src=&quot;http://foo.bar/image.jpg&quot; class=&quot;some-class&quot; alt=&quot;&quot; /&gt;',
-      'with style !{width:100px;height100px}http://foo.bar/image.jpg!' =&gt; 'with style &lt;img src=&quot;http://foo.bar/image.jpg&quot; style=&quot;width:100px;height100px;&quot; alt=&quot;&quot; /&gt;',
+      # inline styles should be stripped
+      'with style !{width:100px;height100px}http://foo.bar/image.jpg!' =&gt; 'with style &lt;img src=&quot;http://foo.bar/image.jpg&quot; alt=&quot;&quot; /&gt;',
       'with title !http://foo.bar/image.jpg(This is a title)!' =&gt; 'with title &lt;img src=&quot;http://foo.bar/image.jpg&quot; title=&quot;This is a title&quot; alt=&quot;This is a title&quot; /&gt;',
       'with title !http://foo.bar/image.jpg(This is a double-quoted &quot;title&quot;)!' =&gt; 'with title &lt;img src=&quot;http://foo.bar/image.jpg&quot; title=&quot;This is a double-quoted &amp;quot;title&amp;quot;&quot; alt=&quot;This is a double-quoted &amp;quot;title&amp;quot;&quot; /&gt;',
     }</diff>
      <filename>test/unit/helpers/application_helper_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6ae66f4dbff91d4392d59254ed77eb833edced0c</id>
    </parent>
  </parents>
  <author>
    <name>Jean-Philippe Lang</name>
    <email>jp_lang@yahoo.fr</email>
  </author>
  <url>http://github.com/edavis10/redmine/commit/7da7e853a34773ef6786b184a9e52bc86cab1507</url>
  <id>7da7e853a34773ef6786b184a9e52bc86cab1507</id>
  <committed-date>2008-12-28T05:45:53-08:00</committed-date>
  <authored-date>2008-12-28T05:45:53-08:00</authored-date>
  <message>Backported r2192 from trunk.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.7-stable@2194 e93f8b46-1217-0410-a6f0-8f06a7374b81</message>
  <tree>02ea16ed89d891c5b48b7e7d014464069ffc603e</tree>
  <committer>
    <name>Jean-Philippe Lang</name>
    <email>jp_lang@yahoo.fr</email>
  </committer>
</commit>
