<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1180: User 'about' field put in HTML unsafely</title>
    <link>http://localhost/ticket/1180</link>
    <description>&lt;p&gt;
User can insert bad things into their About field and when you view the user (web interface) then it causes a 500 error - something is not right here. Need to filter to just safe markdown, as we do for the package notes field.
&lt;/p&gt;
&lt;pre class="wiki"&gt;&amp;lt;a href="http://xxxsex.com&amp;gt;nasty/website
&lt;/pre&gt;</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1180</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Tue, 07 Jun 2011 19:31:07 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/1180#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1180#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1180?action=diff&amp;amp;version=1"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Wed, 08 Jun 2011 14:43:43 GMT</pubDate>
      <title>status, description, summary changed; resolution set</title>
      <link>http://localhost/ticket/1180#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1180#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1180?action=diff&amp;amp;version=2"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;summary&lt;/strong&gt;
                changed from &lt;em&gt;User 'about' field put in HTML unsafely&lt;/em&gt; to &lt;em&gt;Links in markdown can be badly formed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Both issues solved using a whitelist on anchor tags.
&lt;/p&gt;
&lt;p&gt;
Second issue was a link with unicode expression of the quote. e.g. &amp;lt;a href=\u201dsomelink\u201d&amp;gt;somelink&amp;lt;/a&amp;gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>